The portal for developers to use MapQuest APIs. Find documentation to use our geo-spatial APIs and make maps using our mobile and javascript SDKs.
street, postalCode 1555 Blake St, 80202 Latitude,Longitude 39.750307,-104.999472 More Resources Getting Started with Static Map Static Map Examples Migrate to Static Map Static Map API Support Suggest changes to this page Pager Previous pageGetting Started Next pageTraffic API ...
The portal for developers to use MapQuest APIs. Find documentation to use our geo-spatial APIs and make maps using our mobile and javascript SDKs.
MethodDocs Link GET/staticmap/v5/map Supporting Documentation Getting Started with Static Map Static Map Examples Migrate to Static Map Static Map API Support
This is specifically for use in our Static Map v5 API, but it is also caches your image for improved responsiveness. In the example below, we will self reference but only because it makes examples easy. https://assets.mapquestapi.com/icon/v2/external/https://assets.mapquestapi.com/icon/...
A control that allows for drop-in Place Search API functionality. Syntax js L.mapquest.key = 'KEY'; let map = L.mapquest.map('map', { center: [40.7128, -74.0059], layers: L.mapquest.tileLayer('map'), zoom: 14, zoomControl: false }); let searchControl = L.mapquest.searchCo...
If an array of locations is provided, theBatch Geocode APIwill be used. Example: Advanced Location Object { city: 'Denver', state: 'CO' } Example: Array of Advanced Location Objects [{ city: 'Boulder', state: 'CO'}, { city: 'Denver', state: 'CO' }] ...
API Reference MapQuest.js L.mapquest.map(element, options) Create and configure a map class with layers, markers, and interactivity. Syntax js L.mapquest.key='KEY';// 'map' refers to a <div> element with the ID mapL.mapquest.map('map', {center: [37.7749,-122.4194],//...
A class that acts as an interface to the MapQuest Directions API. Performs either a Route, Optimized Route, or Alternate Route call depending on the routeOptions. If no callback is provided, the route will be automatically rendered on the map. The route markers and ribbons can be styled us...
Examples PlaceSearch.js APIs Data Manager API Directions API Geocoding API Icons API Search API Place Search API Search Ahead API Static Map API Traffic API On this page L.mapquest.directionsLayer(options) Syntax Parameters layerOptions Object Functions directionsLayer.getDirectionsResponse(...