Link to Driving Directions - LinkFree


LinkFree Home
Link to Homepage
Link to Finding Places
Link to Maps
Link to Driving Directions

Business Solutions
For information about any of our fully integrated, customizable mapping solutions, please contact our sales team at sales@mapquest.com.
Linking to MapQuest Driving Directions
You have two different options when linking to driving directions on MapQuest.

  •  Option #1 - Link off to a driving directions results page
Know both the starting and ending address? Simply use MapQuest.com to get your direction results and click on "Link to this Page" near the top of the page. Then copy and paste the code provided into your website or send as an email.

  •  Option #2 - Link off to a pre-populated MapQuest form
Link directly to a MapQuest Directions form with a pre-populated starting or ending address.


By linking to MapQuest you agree to comply with our terms and conditions.



Option #2 - Link off to a pre-populated MapQuest form
Now you can easily link directly to a MapQuest Directions form with a pre-populated starting or ending address. Follow the instructions below or use the example code to add this link to your website.

Here's how it's done: Say you want users to get directions to your business address. In this example, we'll use a U.S. address: 555 17th St, Denver, CO 80202.

Step 1: Start with this base URL:

http://www.mapquest.com/maps

Step 2: Now add your address information using the parameters described in the chart below. Each parameter should be separated by an ampersand "&". Within each parameter, replace each space with a plus "+" symbol:

http://www.mapquest.com/maps?2c=Denver&2s=CO&2a=555+17th+St&2z=80202&2y=US&form=directions


Step 3: Add the CID=lfmaplink key/value pair to the end of the URL (this is required by MapQuest):

http://www.mapquest.com/maps?2c=Denver&2s=CO&2a=555+17th+St&2z=80202&2y=US&form=directions&CID=lfddlink


Step 4: Add the html code around the URL to make the whole thing a link:

<A HREF="http://www.mapquest.com/maps? 2c=Denver&2s=CO&2a=555+17th+St&2z=80202&2y=US&form=directions&CID=lfddlink"> Directions To This Location</A>

 Sample HTML:  Example:
(Ending point in this example is coded as "555 17th St, Denver, CO 80202")





Help with Variable Name/Value Pairs
Use these parameters to pre-populate a starting or ending address.

Parameter
Description
Default
Required?
Max Length
1c Origin City None No 30
1s Origin State/Province None No 2
1a Origin Street Address None No 30
1z Origin ZIP/Postal Code None No 10
1y Origin Country
(Use ISO Country Codes)
None yes 2
2c Destination City None No 30
2s Destination State/Province None No 30
2a Destination Street Address None No 2
2z Destination ZIP/Postal Code None Yes 10
2y Destination Country
(Use ISO Country Codes)
None Yes 2
form Display Directions form with address pre-populated in form
instead of automatically displaying the map result page.
directions No N/A
CID Required by MapQuest lfddlink Yes N/A


Note - All parameters must be passed in the order specified in the chart above. Additionally, do not pass empty parameters in the URL. If you are not using one of them, such as title, do not send the value as empty.