MapQuest Geocoding drop-in replacement

Both the licensed and the Open Data MapQuest geocoding endpoints answer at mapquest.mygeocode.com, with the info, options and results envelope and the adminArea1 to adminArea6 naming that MapQuest clients parse.

Change one hostname

Original host
  • www.mapquestapi.com
  • open.mapquestapi.com
Use insteadmapquest.mygeocode.com
Key parameterkey (put your My Geocode key here, or leave it out for the free 2,500 a day)
Before
curl "https://www.mapquestapi.com/geocoding/v1/address?key=YOUR_MAPQUEST_KEY&location=233+S+Wacker+Dr,+Chicago,+IL"
After
curl "https://mapquest.mygeocode.com/geocoding/v1/address?key=YOUR_MYGEOCODE_KEY&location=233+S+Wacker+Dr,+Chicago,+IL"

Why people move

MapQuest's free tier has shrunk over the years and its developer plans are monthly tiers. Here you get 2,500 a day free and per-request or flat pricing after that.

Try it before you sign up for anything. Requests to mapquest.mygeocode.com count toward the same 2,500 a day you get on our own endpoints, with no key and no account. Above that, credits at $0.001 per request or €50 a month unlimited. Signing up takes an email address and nothing else.

See pricing Sign up with an email

Endpoints

Path on mapquest.mygeocode.comWhat it doesBacked by
/geocoding/v1/address?location=...Forward geocodingForward geocoding
/geocoding/v1/reverse?location=lat,lngReverse geocodingReverse geocoding
/geocoding/v1/batch?location=...&location=...Batch geocodingForward geocoding

Example response

This is what the request above returns. Field names, nesting and types follow MapQuest. Only the data behind them is ours.

Response from mapquest.mygeocode.com
{
  "info": {
    "statuscode": 0,
    "copyright": { "text": "My Geocode", "imageUrl": "https://mygeocode.com/assets/img/logo.svg", "imageAltText": "My Geocode" },
    "messages": []
  },
  "options": { "maxResults": -1, "thumbMaps": false, "ignoreLatLngInput": false },
  "results": [
    {
      "providedLocation": { "location": "233 S Wacker Dr, Chicago, IL" },
      "locations": [
        {
          "street": "233 S Wacker Dr",
          "adminArea6": "Loop",
          "adminArea6Type": "Neighborhood",
          "adminArea5": "Chicago",
          "adminArea5Type": "City",
          "adminArea4": "Cook County",
          "adminArea4Type": "County",
          "adminArea3": "IL",
          "adminArea3Type": "State",
          "adminArea1": "US",
          "adminArea1Type": "Country",
          "postalCode": "60606",
          "geocodeQualityCode": "P1AAA",
          "geocodeQuality": "POINT",
          "dragPoint": false,
          "sideOfStreet": "R",
          "linkId": "0",
          "unknownInput": "",
          "type": "s",
          "latLng": { "lat": 41.878876, "lng": -87.635918 },
          "displayLatLng": { "lat": 41.878876, "lng": -87.635918 }
        }
      ]
    }
  ]
}

Details and differences

  • geocodeQuality and geocodeQualityCode follow MapQuest's scheme (POINT, ADDRESS, STREET, ZIP, CITY and so on) mapped from our precision field.
  • Batch requests count one request per location, the same as our own batch rules.
  • thumbMaps is always false. Static map thumbnails are not included.

If your client depends on a field or behaviour that is not listed here, tell us. Compatibility gaps get fixed quickly because they are usually small.

Other drop-in hosts

All REST drop-ins and JavaScript library drop-ins.