Reverse Geocoding to City API
Introduction
Today, our smart devices can locate our geo-coordinates in real-time and with a high level of accuracy. But, these coordinates are often useless if you cannot identify the locality information such as country/state/city associated with them.
Reverse geocoding is a process which converts latitude and longitude to readable locality properties. Reverse geocoding is an essential component of the modern web, mobile and IoT. Its use cases vary across various industries and applications.
- Content Personalisation and Localisation
- Geotargeting
- Geofencing
- Customer data validation
- Fraud and security threat detection
How is BigDataCloud’s Reverse Geocoding API different?
Existing reverse geocoding providers are trying to resolve to the closest street address, a household, for the given coordinates. As a result, the quality of data widely varies for mobile and regional users and exhibits slower response times.
Our Reverse Geocoding API is the first to deliver administrative/non-administrative boundaries-based results. Hence, the API is perfectly suitable for determining locality areas such as a suburb, city, state or country, rather than a street address, resulting much faster response times and excellent support even for less populated areas.
- Unprecedented fast response time (sub-millisecond)
- Delivers Administrative/non-administrative boundaries-based results
- Provides detailed locality information of a user in 147 common world languages
- Full postal code level accuracy for the US, Great Britain, and Australia (partial for other countries)
https://api.bigdatacloud.net/data/reverse-geocode
CURL Example
curl -X GET --header 'Accept: application/json' 'https://api.bigdatacloud.net/data/reverse-geocode'
Visit our SDK page to access API clients in specific languages like Javascript, Python + PHP.
Response
Response Format
Field |
Data type |
Description |
---|---|---|
latitude |
float |
Requested Latitude |
longitude |
float |
Requested Longitude |
plusCode |
string |
Open Location Code (read more here plus codes) |
localityLanguageRequested |
string |
localityLanguage input parameter received |
continent |
string |
Localised Continent name in the requested language, if available |
continentCode |
string |
Continent code |
countryName |
string |
Localised Country name in the requested language, if available |
countryCode |
string |
Country code as defined by ISO 3166-1 standard |
principalSubdivision |
string | Localised principal subdivision name in the requested language, if available |
principalSubdivisionCode |
string |
Principal subdivision code as defined by ISO 3166-2 standard |
city |
string | Localised city name in the requested language, if available |
locality |
string | Represents the smallest geographic area recognised to which the target belongs. The language, if available, is as defined by ‘localityLanguage’ request parameter |
postcode |
string |
Postcode, if available |
localityInfo |
<LocalityInfo> object |
Detailed reverse geocoded locality information localised to the language as defined by ‘localityLanguage’ request parameter |
API Endpoint
Endpoint: | /data/reverse-geocode |
---|---|
Full URL: | https://api.bigdatacloud.net/data/reverse-geocode |