Resolve Place
GET/places/:place
Resolves a place autocompletion by its place ID.
Request
Path Parameters
ID of place suggestion
Query Parameters
API Key
Your unique identifier that allows access to our APIs.
Begins ak_
. Available from your dashboard
A comma separated list of tags to query over.
Useful if you want to specify the circumstances in which the request was made.
If multiple tags are specified, the response will only comprise of requests for which all the tags are satisfied - i.e. searching "foo,bar"
will only query requests which tagged both "foo"
and "bar"
.
Responses
- 200
- 404
Success
Response Headers
- application/json
- Schema
- Example (from schema)
- Valid Place
Schema
geonames
GeoNames place- MOD1
- MOD2
- MOD1
- MOD2
- GeoNames Place
- Array [
- MOD1
- ]
- MOD1
- MOD2
- MOD1
- MOD2
- Array [
- MOD1
- ]
Possible values: [2000
]
Possible values: [Success
]
result Placerequired
Represents a geographical place
Global unique internally generated identifier for a place
Possible values: [geonames
]
Indicates the provenance of a place.
Place name
Longer form description of the place.
3 letter country code (ISO 3166-1)
Possible values: [en
, ar
, az
, be
, bg
, bn
, bs
, ca
, cs
, cy
, da
, de
, el
, es
, et
, eu
, fi
, fo
, fr
, ga
, gl
, gn
, he
, hi
, hr
, hu
, hy
, id
, is
, it
, ka
, kk
, km
, kn
, lt
, lv
, mk
, mn
, ms
, mt
, my
, nl
, no
, pl
, pt
, ro
, ru
, sk
, sl
, sq
, sr
, sv
, ta
, th
, tr
, uk
, uz
, vi
, wa
, zh
]
Language represented by 2 letter ISO Code (639-1)
longitude object required
The longitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
string
number
latitude object required
The latitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. 51.5083983
.
Returns an empty string if no location data is available.
string
number
native object
Native representation of a place
Unique identifier for GeoNames place
Possible values: <= 200 characters
Place name (UTF8)
Possible values: <= 200 characters
Place Name (ASCII)
alternatenames object[]
List of alternate ASCII names
string
latitude object
The latitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. 51.5083983
.
Returns an empty string if no location data is available.
string
number
longitude object
The longitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
string
number
Possible values: [A
, H
, L
, P
, R
, S
, T
, U
, V
]
GeoNames single letter feature code
Possible values: <= 7 characters
Full GeoNames feature code (http://www.geonames.org/export/codes.html)
Possible values: >= 2 characters
and <= 2 characters
2 Letter ISO country code
cc2 object[]
List of other countries codes mapping to this place
string
Name of first administrative area
GeoName ID for first administrative area
Possible values: <= 20 characters
Fipscode (subject to change to iso code)
Name of second administrative area
GeoName ID for second administrative area
Possible values: <= 20 characters
Code for the second administrative division
Possible values: <= 20 characters
Code for third level administrative division
Possible values: <= 20 characters
Code for fourth level administrative division
Population at place. Represented as string as it could be a larger than a 32bit integer
Elevation in meters
Digital elevation model
Possible values: <= 40 characters
The IANA timezone ID
Datetime format
Possible values: [geonames
]
Unique place ID
{
"result": {
"id": "geonames_2643743",
"dataset": "geonames",
"name": "London",
"descriptive_name": "London, Greater London, England",
"language": "en",
"longitude": -0.12574,
"latitude": 51.50853,
"country_iso": "GBR",
"native": {
"admin1_code": "ENG",
"admin2_name": "Greater London",
"geonameid": 2643743,
"timezone": "Europe/London",
"latitude": 51.50853,
"language": "en",
"dem": 25,
"admin4_code": "",
"admin1_geonameid": 6269131,
"alternatenames": [
"ILondon",
"LON",
"Lakana",
"Landan",
"Landen",
"Ljondan",
"Llundain",
"Lodoni",
"Londain",
"Londan",
"Londar",
"Londe",
"Londen",
"Londin",
"Londinium",
"Londino",
"Londn",
"London",
"London osh",
"Londona",
"Londonas",
"Londoni",
"Londono",
"Londons",
"Londonu",
"Londra",
"Londres",
"Londrez",
"Londri",
"Londro",
"Londye",
"Londyn",
"Londýn",
"Lonn",
"Lontoo",
"Loundres",
"Luan GJon",
"Lun-tun",
"Lunden",
"Lundra",
"Lundun",
"Lundunir",
"Lundúnir",
"Lung-dung",
"Lunnainn",
"Lunnin",
"Lunnon",
"Luân Đôn",
"Lùn-tûn",
"Lùng-dŭng",
"Lûn-tun",
"Lākana",
"Lůndůn",
"Lọndọnu",
"Ranana",
"Rānana",
"ilantan",
"ladana",
"landan",
"landana",
"leondeon",
"lndn",
"london",
"londoni",
"lun dui",
"lun dun",
"lwndwn",
"lxndxn",
"rondon",
"Łondra",
"Λονδίνο",
"Лондан",
"Лондон",
"Лондон ош",
"Лондонъ",
"Лёндан",
"Լոնդոն",
"לאנדאן",
"לונדון",
"لأندأن",
"لندن",
"لوندون",
"لەندەن",
"ܠܘܢܕܘܢ",
"लंडन",
"लंदन",
"लण्डन",
"लन्डन्",
"लन्दन",
"লন্ডন",
"ਲੰਡਨ",
"લંડન",
"ଲ୍ଡନ",
"இலண்டன்",
"లండన్",
"ಲಂಡನ್",
"ലണ്ടൻ",
"ලන්ඩන්",
"ลอนดอน",
"ລອນດອນ",
"ལོན་ཊོན།",
"လန်ဒန်မြို့",
"ლონდონი",
"ለንደን",
"ᎫᎴ ᏗᏍᎪᏂᎯᏱ",
"ロンドン",
"伦敦",
"倫敦",
"런던"
],
"cc2": [],
"admin2_code": "GLA",
"modification_date": "2022-03-09T00:00:00.000Z",
"asciiname": "London",
"id": "geonames_2643743",
"feature_code": "PPLC",
"country_iso": "GBR",
"longitude": -0.12574,
"elevation": null,
"admin2_geonameid": 2648110,
"admin1_name": "England",
"population": "8961989",
"country_code": "GB",
"feature_class": "P",
"name": "London",
"admin3_code": "",
"dataset": "geonames"
}
},
"code": 2000,
"message": "Success"
}
{
"result": {
"id": "geonames_2643743",
"dataset": "geonames",
"name": "London",
"descriptive_name": "London, Greater London, England",
"language": "en",
"longitude": -0.12574,
"latitude": 51.50853,
"country_iso": "GBR",
"native": {
"admin1_code": "ENG",
"admin2_name": "Greater London",
"geonameid": 2643743,
"timezone": "Europe/London",
"latitude": 51.50853,
"language": "en",
"dem": 25,
"admin4_code": "",
"admin1_geonameid": 6269131,
"alternatenames": [
"ILondon",
"LON",
"Lakana",
"Landan",
"Landen",
"Ljondan",
"Llundain",
"Lodoni",
"Londain",
"Londan",
"Londar",
"Londe",
"Londen",
"Londin",
"Londinium",
"Londino",
"Londn",
"London",
"London osh",
"Londona",
"Londonas",
"Londoni",
"Londono",
"Londons",
"Londonu",
"Londra",
"Londres",
"Londrez",
"Londri",
"Londro",
"Londye",
"Londyn",
"Londýn",
"Lonn",
"Lontoo",
"Loundres",
"Luan GJon",
"Lun-tun",
"Lunden",
"Lundra",
"Lundun",
"Lundunir",
"Lundúnir",
"Lung-dung",
"Lunnainn",
"Lunnin",
"Lunnon",
"Luân Đôn",
"Lùn-tûn",
"Lùng-dŭng",
"Lûn-tun",
"Lākana",
"Lůndůn",
"Lọndọnu",
"Ranana",
"Rānana",
"ilantan",
"ladana",
"landan",
"landana",
"leondeon",
"lndn",
"london",
"londoni",
"lun dui",
"lun dun",
"lwndwn",
"lxndxn",
"rondon",
"Łondra",
"Λονδίνο",
"Лондан",
"Лондон",
"Лондон ош",
"Лондонъ",
"Лёндан",
"Լոնդոն",
"לאנדאן",
"לונדון",
"لأندأن",
"لندن",
"لوندون",
"لەندەن",
"ܠܘܢܕܘܢ",
"लंडन",
"लंदन",
"लण्डन",
"लन्डन्",
"लन्दन",
"লন্ডন",
"ਲੰਡਨ",
"લંડન",
"ଲ୍ଡନ",
"இலண்டன்",
"లండన్",
"ಲಂಡನ್",
"ലണ്ടൻ",
"ලන්ඩන්",
"ลอนดอน",
"ລອນດອນ",
"ལོན་ཊོན།",
"လန်ဒန်မြို့",
"ლონდონი",
"ለንደን",
"ᎫᎴ ᏗᏍᎪᏂᎯᏱ",
"ロンドン",
"伦敦",
"倫敦",
"런던"
],
"cc2": [],
"admin2_code": "GLA",
"modification_date": "2022-03-09T00:00:00.000Z",
"asciiname": "London",
"id": "geonames_2643743",
"feature_code": "PPLC",
"country_iso": "GBR",
"longitude": -0.12574,
"elevation": null,
"admin2_geonameid": 2648110,
"admin1_name": "England",
"population": "8961989",
"country_code": "GB",
"feature_class": "P",
"name": "London",
"admin3_code": "",
"dataset": "geonames"
}
},
"code": 2000,
"message": "Success"
}
Resource not found
- application/json
- Schema
- Example (from schema)
Schema
API Response Code. Non 2xxx
code indicates a failure. This code will provide a more specific reason when a failure occurs and facilitates debugging.
Human readable error message supplied with every error response.
{
"code": 0,
"message": "string"
}