There are many geocoding APIs to choose from. In this guide, we explain some factors to consider when choosing a geocoding API, popular geocoding APIs and their pros and cons, and Radar's geocoding APIs and Maps Platform.
Unfamiliar with geocoding? Check out one of our other guides, What is geocoding? Geocoding explained: Definitions, applications, solutions, and more.
When choosing a geocoding API, consider the following factors:
There are many popular geocoding APIs. In this section, we provide a brief overview of each, with pros and cons.
Radar offers a full suite of enterprise-ready geocoding APIs, including forward geocoding, reverse geocoding, and IP geocoding.
Our geocoding APIs are part of our broader Maps Platform, which also supports address autocomplete, address verification, places search, routing, base maps, and more.
Our Maps Platform is also complemented by our industry-leading Geofencing Platform, which supports geofencing, trip tracking, place visit detection, and location spoofing detection. All of these are also useful for logistics, e-commerce, and retail apps and websites that may need geocoding.
Radar is up to 90% cheaper than alternatives, with geocoding pricing that starts at $0.50 per 1,000 API calls, compared to $5 per 1,000 API calls from Google Maps Platform.
Visit our geocoding API product page to try out our geocoding API.
You can also sign up for a developer account and try out the API explorer in the dashboard.
After you sign up, you can use your API key to make a geocoding request:
curl "https://api.radar.io/v1/geocode/forward?query=841+broadway+new+york+ny&layers=address" \
-H "Authorization: prj_live_pk_..."
And here's a sample API response:
{
"meta": {
"code": 200
},
"addresses": [
{
"latitude": 40.734288,
"longitude": -73.991057,
"geometry": {
"type": "Point",
"coordinates": [
-73.991057,
40.734288
]
},
"country": "United States",
"countryCode": "US",
"countryFlag": "🇺🇸",
"county": "New York County",
"distance": 4,
"borough": "Manhattan",
"city": "New York",
"number": "841",
"neighborhood": "Greenwich Village",
"postalCode": "10003",
"stateCode": "NY",
"state": "New York",
"street": "Broadway",
"layer": "address",
"formattedAddress": "841 Broadway, Manhattan, New York, NY 10003 USA",
"addressLabel": "841 Broadway"
}
]
}
Or, on iOS, in Swift:
Radar.geocode(
query: "841 broadway new york ny"
) { (status: RadarStatus, addresses: [RadarAddress]?) in
// do something with addresses
}
On Android, in Kotlin:
Radar.geocode("841 broadway new york ny") { status, addresses ->
// do something with addresses
}
The response will include a structured address for the coordinates, including street address, city, postal code, and country.
Optionally, to return a specific type or granularity of address result you can specify layers, including one or more of place
, address
, postalCode
, locality
, county
, state
, country
, coarse
, and fine
. Note that coarse includes all of postalCode
, locality
, county
, state
, and country
, whereas fine
includes address
and place
.
See our geocoding API documentation for more details.
To learn more, check out our docs, get started for free, or request a demo.
See what Radar’s location and geofencingsolutions can do for your business.