Static Map API
The MapQuest Static Maps API enables you to create, configure, and return a map image of almost any size through a simple HTTP request. Map images generated by the Static Maps API can include custom POI icons, routes, traffic data, a scale bar, and other custom lines and polygons. Popular features like aerial and hybrid base maps, POI decluttering, and setting the style of the traffic flow highlight are also supported. Maps can be easily added to a Web page without writing or embedding code -- just add the map like any other image.
- Detailed maps
- Embed a printer-friendly MapQuest map image on your web page without writing or embedding code. Map images generated by the Static Maps API can include custom POI icons, routes, traffic data, a scale bar, and other custom lines and polygons -- all of which can be specified through query-string parameters!
- Multiple map types
- The Static Maps API supports street, aerial, and hybrid maps -- just like MapQuest.com and the Maps Plugin for Leaflet.
- Integration with the Directions API
- Route highlights generated by the Directions API are available to the Static Maps API. Simply pass the sessionID generated by the Directions API into your Static Maps API request. The Static Maps API will automatically retrieve the route shape and display it on the map.
- Custom POI icons
- Points of interest icons are easily customizable; either choose an icon provided by MapQuest or provide a URL for your own custom POI icon.
- Declutter overlapping POIs
- The decluttering capabilities present in other MapQuest APIs are also included with the Static Maps API. Either setdeclutter=true for an automatic decluttering of overlapping POIs or manually specify an X/Y pixel offset for each POI icon.
- Shape support
- Custom polylines, polygons, and ellipses can be passed in with a static map request. Width, colors, and fills can be specified and both raw and compressed shape formats are supported.
- Single-line addresses (getPlaceMap function)
- The /getPlaceMap?location= function takes a single-line address and returns a static map showing the location without the need to provide latitude and longitude coordinates. For instance, rather than finding the latitude and longitude coordinates of the street address for the MapQuest office in Denver, Colorado, the street address can be passed in with the request. /getPlaceMap?location=1555 Blake St, Denver, CO will return a map centered on this address, with the address marked with a POI icon of your choice.