Link to Route Planner Developer's Guide

The Link to Route Planner Service provides a simple interface to prepopulate the Route Planner form with addresses and notes from any website or application.

Overview

Link to Route Planner supports four different methods of connecting to the Route Planner application. Using any of these methods you could have your website or application prepopulate the Route Planner application form with addresses and notes from your website or application.

Supported input formats:

  • JSON - All the route addresses and corresponding notes are supplied via JSON-formated text with key "json",through HTTP POST request.
  • XML - All the route addresses and corresponding notes are supplied via XML-formatted text with key "xml", through HTTP POST request.
  • CopyPaste - All route addresses are supplied as a single value corresponding to a key "copypaste" through HTTP POST request.
  • Key/Value pairs - All route addresses are supplied via request parameters through HTTP POST request, the key for each parameter will mentioned in the below section.

Common URL Parameters

Request Parameter Request Parameter Value Description
format json If format mentioned in the post url is json, all the route addresses and corresponding notes will be accepted via JSON-formated text with key "json"
xml If format mentioned in the post url is json, all the route addresses and corresponding notes will be accepted via XML-formated text with key "xml"
copypaste If format mentioned in the post url is 'copypaste', all the route addresses will be accepted in text format with key "copypaste"
form All route addresses are supplied via request parameters through HTTP POST request

Supported input formats Samples

JSON Format Sample

This is the recommended format to be used if your website or application has Routing addresses and notes that are not stored in a single form. You can programmatically pull the addresses and notes and build a JSON object as specified and submit the same to the Route Planner Application as described below.

https://classic.mapquest.com/routeplanner?format=json
JSON TEXT

XML Format Sample

This is the recommended format to be used if your website or application has Routing addresses and notes that are not stored in a single form. You can programatically pull the addresses and notes and build a XML formatted string as specified and submit the same to the Route Planner Application as described below.

https://classic.mapquest.com/routeplanner?format=xml
XML TEXT

Copy Paste Format Sample

This is the easiest way in which you can connect to the Route Planner Application. In this method you can add a simple form to your website or application which has a single textarea where users can paste/enter addresses. Please note that you will have to inform the users that each address will have to be entered in a separate line. This method does not support notes for stops.

https://classic.mapquest.com/routeplanner?format=copypaste