Business Solutions
For information about any of our fully integrated, customizable mapping solutions, please contact our sales team at sales@mapquest.com. |
|
Free MapQuest Maps for Your Website
You have three options when linking directly to a MapQuest map.
| |
Option #1 - Link to a map results page Simply use MapQuest.com to get your map results and click on "Link to this Map" near the top of the page. Then copy and paste the code provided into your website or send as an email.
|
| |
Option #2 - Create a link to a results page from scratch
|
| |
Option #3 - HTML Form
Include an input form on your site that will allow your users to generate maps dynamically based on information they provide.
|
By linking to MapQuest you agree to comply with our terms and conditions.
Option #2 - Create a link to a results page from scratch
Link directly to a MapQuest map by creating a link for use on your website.
Here's how: Say you want users to get a map of 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/map.adp?cid=lfmaplink
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/map.adp?address=555+17th+St&city=Denver
&state=CO&zipcode=80202&country=US&cid=lfmaplink
Step 3: Add the html code around the URL to make the whole thing a link:
<A HREF="http://www.mapquest.com/maps/map.adp? address=555+17th+St&city=Denver&state=CO&zipcode=80202&country= US&cid=lfmaplink">Map This Location</A>
| Sample HTML: |
Example: |
|
|
(Map link in this example is coded as "555 17th St, Denver, CO 80202")
|
Help with Variable Name/Value Pairs Use these parameters to help add your address information into the code example above.
|
Parameter
|
Description
|
Default
|
Required?
|
|
title
|
Overwrites Label
NOTE:
When a title value is passed,
the address, city, state, ZIP and country do not appear in the label.
|
None
|
No
|
|
address
|
Street Address
|
None
|
No
|
|
city
|
City
|
None
|
No
|
|
state
|
State or Province
|
None
|
No
|
|
zipcode
|
ZIP or Postal Code
|
None
|
No
|
|
country
|
Country
(Use ISO 2-digit codes.)
|
US
|
No
|
|
style
|
Map Color
0=Gray Scale
1=Neutrals
2=Yellows
3=European Style
|
1
|
No
|
| CID |
Required by MapQuest |
lfmaplink |
Yes |
Option #3 - HTML Form
Easily post a blank MapQuest map form on your website. Your users can complete and submit the form to generate a map of their choosing on the MapQuest site.
| Sample HTML: |
Example: |
|
|
|
|