Geocoding converts location descriptions like human-readable addresses into geographic coordinates (latitude and longitude values), enabling vital services like navigation and delivery optimization.
Forward geocoding translates addresses into coordinates, answering questions like "What are the coordinates for this restaurant?" It's the process of transforming a human-readable location description, such as a street address or place name, into geographic coordinates. Think of it as pinpointing a location on the Earth's surface.
Some services offer autocomplete suggestions to help users input addresses correctly, minimizing errors.
See an example of converting an address into coordinates below:
See Radar's forward geocoding API documentation for more details.
Reverse geocoding starts with geographic coordinates and provides a human-readable location description, such as a street address or point-of-interest (POI). This process answers, "What's here?" and often includes additional details like neighborhood, city, or postal code.
You can try out a reverse geocoding API here. Additionally, sign up for a free developer account and try out Radar's API explorer in the dashboard.
After you sign up, you can use your API key to make a reverse geocoding request:
curl "https://api.radar.io/v1/geocode/reverse?coordinates=40.7343,-73.9911&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.reverseGeocode(
location: location
) { (status: RadarStatus, addresses: [RadarAddress]?) in
// do something with addresses
}
On Android, in Kotlin:
Radar.reverseGeocode(location) { 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 Radar's reverse geocoding API documentation for more details.
See how brands like Bojangles and Culver's use geocoding for their store locators:
When selecting a geocoding service, there are many solutions available. Cost, usage rates, ease of implementation, and accuracy are key factors to consider when vetting vendors.
Radar provides a developer-friendly platform with real-time location context, geofencing, location tracking, and place search. Radar offers cost-effective geocoding with 100,000 free API calls per month and competitive pricing.
Known for global coverage, accuracy, and frequent updates, Google Maps Platform offers geocoding and additional tools like directions and place search. Usage-based pricing applies.
HERE specializes in location data, offering global coverage and features like address validation and batch geocoding.
OpenCage emphasizes privacy and open data with straightforward APIs and flexible pricing.
Mapbox integrates geocoding with custom maps and data visualization for unique experiences.
Azure Mapsintegrates geocoding with Microsoft Azure services, supporting global coverage and multiple languages.
Radar offers a seamless, developer-friendly geocoding solution at a lower cost than competitors like Google Maps or Mapbox. Its commitment to privacy and real-time insights makes it ideal for building dynamic, location-aware applications.
Book a demo to see how Radar can support your geocoding needs.
See what Radar’s location and geofencingsolutions can do for your business.