On this page

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 that 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 in much faster response times and excellent support even for less populated areas. 

  • Unprecendly 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)

Get started

This API is part of the Reverse Geocoding package and is available in free and paid plans. Please visit the Reverse Geocoding package page for limits and pricing information.

Endpoint

GET
https://api.bigdatacloud.net/data/reverse-geocode

Request

Parameter
Type
Required
Description
Parameter
latitude
Type
number (double)
Required
Yes
Description
Latitude value as per WGS 84 reference system (GPS system). Expected values are in [-90, 90] range
Parameter
longitude
Type
number (double)
Required
Yes
Description
Longitude value as per WGS 84 reference system (GPS system). Expected values are in [-180, 180] range
Parameter
localityLanguage
Type
string
Required
Optional, default value: en
Description
Preferred language for locality names in ISO 639-1 format, such as 'en' for English, 'es' for Spanish etc. If the requested language is unavailable for a requested location, it will default to English. If no English variant is available, will provide the native, local names. Use 'default' as the requested value to automatically adjust the language to the first administrative language in the Country.
Parameter
key
Type
string
Required
Yes
Description
Your API key

Responses

Example query

https://api.bigdatacloud.net/data/reverse-geocode?latitude=-34.93129&longitude=138.59669&localityLanguage=en&key=[YOUR API KEY]
  

Example response

  • 1
    {
  • 2
    "latitude": -34.93129,
  • 3
    "longitude": 138.59669,
  • 4
    "continent": "Oceania",
  • 5
    "continentCode": "OC",
  • 6
    "localityLanguageRequested": "en",
  • 7
    "city": "Adelaide",
  • 8
    "countryName": "Australia",
  • 9
    "countryCode": "AU",
  • 10
    "postcode": "5000",
  • 11
    "principalSubdivision": "South Australia",
  • 12
    "principalSubdivisionCode": "AU-SA",
  • 13
    "plusCode": "4QQW3H9W+FM",
  • 14
    "locality": "Adelaide",
  • 15
    "localityInfo": {...}
    • 16
      "administrative": [...]
      • 17
        {...}
        • 18
          "name": "Australia",
        • 19
          "description": "country in Oceania",
        • 20
          "isoName": "Australia",
        • 21
          "order": 3,
        • 22
          "adminLevel": 2,
        • 23
          "isoCode": "AU",
        • 24
          "wikidataId": "Q408",
        • 25
          "geonameId": 2077456
        • 26
          },
      • 27
        {...}
        • 28
          "name": "South Australia",
        • 29
          "description": "state of Australia",
        • 30
          "isoName": "South Australia",
        • 31
          "order": 4,
        • 32
          "adminLevel": 4,
        • 33
          "isoCode": "AU-SA",
        • 34
          "wikidataId": "Q35715",
        • 35
          "geonameId": 2061327
        • 36
          },
      • 37
        {...}
        • 38
          "name": "Adelaide",
        • 39
          "description": "local government area in South Australia",
        • 40
          "order": 7,
        • 41
          "adminLevel": 6,
        • 42
          "wikidataId": "Q1094063",
        • 43
          "geonameId": 7839644
        • 44
          },
      • 45
        {...}
        • 46
          "name": "Adelaide",
        • 47
          "description": "city centre of Adelaide, South Australia",
        • 48
          "order": 8,
        • 49
          "adminLevel": 10,
        • 50
          "wikidataId": "Q4681820",
        • 51
          "geonameId": 11523825
        • 52
          }
      • 53
        ],
    • 54
      "informative": [...]
      • 55
        {...}
        • 56
          "name": "Oceania",
        • 57
          "description": "geographic region comprising Melanesia, Micronesia and Polynesia",
        • 58
          "order": 1,
        • 59
          "isoCode": "OC",
        • 60
          "wikidataId": "Q538",
        • 61
          "geonameId": 6255151
        • 62
          },
      • 63
        {...}
        • 64
          "name": "Australia",
        • 65
          "description": "continent on the Earth's Southern Hemisphere",
        • 66
          "order": 2,
        • 67
          "isoCode": "OC",
        • 68
          "wikidataId": "Q3960"
        • 69
          },
      • 70
        {...}
        • 71
          "name": "Adelaide",
        • 72
          "description": "capital city of South Australia",
        • 73
          "order": 5,
        • 74
          "wikidataId": "Q5112",
        • 75
          "geonameId": 2078025
        • 76
          },
      • 77
        {...}
        • 78
          "name": "5000",
        • 79
          "description": "postal code",
        • 80
          "order": 6
        • 81
          }
      • 82
        ]
    • 83
      }
  • 84
    }

Schema

application/json