Getting Started

MapQuest.js is a JavaScript library for interactive maps, geocoding, directions, and traffic. MapQuest.js is powered by the MapQuest APIs and integrates with Leaflet.js.

To get started, first include MapQuest.js and MapQuest.css in your HTML header.

<script src=""></script>
<link type="text/css" rel="stylesheet" href=""/>

Then initialize your MapQuest key and define a MapQuest map object with a center, layer, and zoom.

L.mapquest.key = 'KEY';

// 'map' refers to a <div> element with the ID map'map', {
  center: [37.7749, -122.4194],
  layers: L.mapquest.tileLayer('map'),
  zoom: 12

Join the Community

You'll need to sign up for an account with MapQuest. An API key is provided upon sign up and is required when accessing MapQuest services.

Sign Up

Get Coding

Once you have an account, get started making. We have tons of APIs to try including Mapping, Geocoding, Directions, and Search.

Grab the Key

Integrates with Leaflet.js

Built in harmony with Leaflet.js which powers the interactive mapping portion of MapQuest.js. Easily extend MapQuest.js functionality with third-party plugins.

Powered by Leaflet.js

Supported Browsers



      Supporting Documentation