L.mapquest.key = 'KEY';
var baseLayer = L.mapquest.tileLayer('dark');

L.mapquest.geocoding().geocode(['New York, NY'], showMap);

function showMap(err, data) {
  var map = createMap();

function createMap() {
  var map = L.mapquest.map('map', {
    center: [40.7237, -73.9825],
    zoom: 14,
    layers: baseLayer
  return map;

function addLayerControl(map) {
    'Map': L.mapquest.tileLayer('map'),
    'Satellite': L.mapquest.tileLayer('satellite'),
    'Hybrid': L.mapquest.tileLayer('hybrid'),
    'Light': L.mapquest.tileLayer('light'),
    'Dark': baseLayer
  }, {}, { position: 'topleft'}).addTo(map);
Access the tools and resources you need to map the world.
Join our network of over 34,000 developers and entrepreneurs who leverage the building blocks of our proven geospatial solution.
Get your Free API Key

See Our Tools in Action

Have a data preference? We've got you covered!

We give you the flexibility to use open source data or licensed data with most of our APIs and SDKs.

Check out the latest around MapQuest


Start a conversation or chime in


Get the details


Drop us a line

Contact Us
More perks.
Flexible terms.