You have three different options when linking to driving directions on
MapQuest.
Option
1 is to link directly to a MapQuest Directions form with a
pre-populated destination.
Option
2 is to put a form on your site and let the user input the
starting point. Clicking the send button will take the user to
MapQuest to receive their routing results to the destination you
have chosen.
Option
3 is to let the user choose both the starting point and the
destination by entering the information in a form on your site.
Again, clicking the send button will take the user to MapQuest for
their results.
Instructions for carrying out each
of these options are listed below.
You may use
statements to link to driving directions on the MapQuest Web site.
Information specific to the destination is passed through the URL by
appending name/value pairs separated by the ampersand character.
Base
URL: http://www.mapquest.co.uk/mq/directions/mapbydirection.do?
Fixed name/value pairs: Go=1
Variable
name/value pairs:
Parameter
Description
Default
Required?
a1
Origin Street Address
None
No
a2
Destination Street Address
None
No
c1
Origin City
None
No
c2
Destination City
None
No
z1
Origin Postcode
None
No
z2
Destination Postcode
None
No
y1
Origin Country (Use ISO Country Codes)
None
Yes
y2
Destination Country (Use ISO Country Codes)
None
Yes
CID
Required by MapQuest
lfddlinkuk
Yes
The following combinations of
location information may be used to map locations in Europe:
Address, City,Postcode
Address, City
City
Postcode
Option 2
- Form with Starting Point Only
You may post an HTML
form on your own web page. Your users can complete and submit their origin
information to generate driving directions on the MapQuest site.
Sample HTML:
Example:
Option 3
- Form with Starting Point and Destination
You may
post an HTML form on your own Web page. Your users can complete and submit
their origin and destination information to generate driving directions on
the MapQuest site.