Sorry! When printing directly from the browser your directions may not be cropped correctly. For best results, try clicking the Printer-Friendly button.
 

LinkFree - Link to Driving Directions


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

Help
For help getting LinkFree implemented on your website please contact Makis McDonald at LinkFree@mapquest.com.

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 four 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 these Directions" 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.

  •  Option #3 - Form with destination pre-populated
Place 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 #4 - Blank form with starting and ending address open
Let the user choose both the starting point and the destination by entering the information in a form on your site. Clicking the send button will take the user to MapQuest for their results.

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/directions/main.adp?cid=lfddlink

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/directions/main.adp?2a=555+17th+St &2c=Denver&2s=CO&2z=80202&2y=US&cid=lfddlink


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

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

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




Option #3 - Form with destination pre-populated
Using the example code below, simply replace the address variables with your own address and add the code to your site. Your users can then use the form to enter their starting address and get directions on the MapQuest site.
 
 Sample HTML:  Example:
(NOTE - Remember to replace the hidden values with your ending address, for help with these values, see the chart below.)

( Ending point in this example is coded as "555 17th St, Denver, CO")


MapQuest
FROM:
Address or Intersection:
City:
State: ZIP Code:
Country:



Option #4 - Blank form with starting and ending address open
Easily post a blank MapQuest directions form on your website. Just copy the code below and paste it into your website. Clicking the send button will take the user to MapQuest for their results.

 Sample HTML:  Example:

MapQuest
FROM:
Address or Intersection:
City:
State/Province: ZIP Code:
Country:
 
TO:
Address or Intersection:
City:
State/Province: ZIP Code:
Country:



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

Parameter
Description
Default
Required?
1a Origin Street Address None No
2a Destination Street Address None No
1c Origin City None No
2c Destination City None No
1s Origin State/Province None No
2s Destination State/Province None No
1z Origin ZIP/Postal Code None No
2z Destination ZIP/Postal Code None No
1y Origin Country
(Use ISO Country Codes)
None Yes
2y Destination Country
(Use ISO Country Codes)
None Yes
CID Required by MapQuest lfddlink Yes


 More links: 
  • Airline Tickets
  • Hotels
  • Car Rental
  • Real Estate
  • Restaurants
  • GPS Devices
  • Movies
  •    ©2007 MapQuest, Inc. All rights reserved.