FREE Client Side Reverse Geocoding to City API

Introduction

The Free Client-side Reverse Geocoding to City API is a free version of Reverse Geocoding to City API which is strictly limited to the client-side implementations only.

A client-side application often requires making external API calls from a script language code, visible to a third party, like javascript for example. Utilising authenticated API requests on such can compromise security. Therefore, to protect our customers, we've decided to offer client-side implemented Reverse Geocoding with no API key required, hence totally for free.

 

Fair Use Policy for Client-side implementation

  1. You're allowed to make free and unlimited API calls from a client's web browser using its own current coordinates obtained by getCurrentPosition() method 

  2. You're allowed to make free and unlimited API calls from client's mobiles such as iOS, Android or IoT devices using their own current coordinates only

 

For example, check out our free Where am I? iOS and Android app. The app demonstrates how you can implement the API for a mobile app to obtain real-time locality information for your users.

 

IMPORTANT! Any user detected abusing the service by implementing it on a server-side or a client-side but with elsewhere obtained coordinates, will be blacklisted from all of our free API Services. If you wish to utilise this Reverse Geocoding API in your backend applications, please visit our server-side variation of this API for details.

Example Response

The response is only available in JSON format. The below response should be expected for the following request:



Awaiting request submission...

API Pricing

Request Format

NEW! Payload compression is supported, simply add Accept-Encoding: gzip header.
Use the form below to try out this API.

Parameter Your Input Value Description
latitude

Latitude value as per WGS 84 reference system (GPS system). Expected values are in [-90, 90] range.

longitude

Longitude value as per WGS 84 reference system (GPS system). Expected values are in [-180, 180] range.

localityLanguage

Preferred language for locality names in ISO 639-1 format, such as 'en' for English, 'es' for Spanish etc. Please note: 147 common world languages are supported, full list here, but not all languages are available for every location. If requested language is not available for a requested location it will default to English, if no English is available, the native, local names will be provided



Response

Awaiting request submission...

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

Data Objects

Locality Info object

Field

Data type

Description

administrative

Aray of <LocalityProperty> objects

Administrative boundarires ordered by area (largest first). Omitted if no administrative boundaries are available

informative

Aray of <LocalityProperty> objects

Non-administrative boundarires ordered by area (largest first). Omitted if not available

Locality Property object

Field

Data type

Description

order

integer

Order value consistent across all entities in the Locality Info parent object. Ordered by geographic area (largest first)

adminLevel

integer

An administrative level as defined by OpenStreetMaps project

name

string

Localised name of the place in the requested language, if available. The language is as defined by ‘localityLanguage’ request parameter

description

string

Localised description of the place in the requested language, if available. The language is as defined by ‘localityLanguage’ request parameter

isoName

string

ISO 3166-2 standard name, if available

isoCode

string

ISO 3166-2 standard code, if available

wikidataId

string

Wikidata item identifier, if available

geonameId

integer

Unique identifier given by GeoNames.org

chinaAdminCode

string

China Administrative division code. This is available only for locations based in China, and is omitted for others.

 

Related APIs