The Directions API provides a simple interface to get routing, narrative, and shapes. Route The core and most basic function of our Directions API. Route provides information on how to get from point A to point B, or points C, D and E. Quite simply, it shows you and your users ho...
keyThe API Key, which is needed to make requests to MapQuest services.Yes outFormatSpecifies the format of the response. Must be one of the following, if supplied: json xml csv (character delimited) Example: XML response outFormat=xmloptional, defaults tojson ...
GEThttps://www.mapquestapi.com/directions/v2/route?key=KEY&callback=render&narrativeType=microformat&from=Denver, CO&to=Boulder, CO Sample Narrative Microformat js <spanclass="nav-cmd">Go<spanclass="compass-dir">west</span>on<spanclass="street-name"><spanclass="regular"><spanclass="fi...
In addition to our own icon set, you can reference your custom icons in png, jpg, and gif format. This is specifically for use in ourStatic 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...
Directions API Route Control Points The Route Control Points are a collection of lat/lng pairs which are used to influence a regular route if provided in the route request. Each Route Control Point (RCP) has the following attributes: ...
Basic Example MapQuest.js L.mapquest.searchControl(options) A control that allows for drop-in Place Search API functionality. Syntax js L.mapquest.key='KEY';letmap=L.mapquest.map('map', {center: [40.7128,-74.0059],layers:L.mapquest.tileLayer('map'),zoom:14,zoomControl:false...
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 Map Object map Raster Layers tileLayer Configuration key Controls control directionsControl geocodingControl locatorControl narrativeControl navigationControl satelliteControl searchControl trafficControl Icons Layers directionsLayer geocodingLayer incidentsLayer marketsLayer searchLayer trafficLayer Markers...
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],//...
POSThttps://www.mapquestapi.com/geocoding/v1/address?key=KEY Example Request Body JSONXML JSON {"location":"Washington,DC","options": {"thumbMaps":false}} Example Response JSONXMLCSV JSON {"info": {"statuscode":0,"copyright": {"text":"© 2023 MapQuest, Inc.","imageUrl":...