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.
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>
Help with Variable Name/Value Pairs Use these parameters to pre-populate a starting or ending address.
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.
|