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 |
|
|---|---|
| Use instead | mapquest.mygeocode.com |
| Key parameter | key (put your My Geocode key here, or leave it out for the free 2,500 a day) |
curl "https://www.mapquestapi.com/geocoding/v1/address?key=YOUR_MAPQUEST_KEY&location=233+S+Wacker+Dr,+Chicago,+IL"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.
Endpoints
| Path on mapquest.mygeocode.com | What it does | Backed by |
|---|---|---|
/geocoding/v1/address?location=... | Forward geocoding | Forward geocoding |
/geocoding/v1/reverse?location=lat,lng | Reverse geocoding | Reverse geocoding |
/geocoding/v1/batch?location=...&location=... | Batch geocoding | Forward geocoding |
Example response
This is what the request above returns. Field names, nesting and types follow MapQuest. Only the data behind them is ours.
{
"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.