Resolve Place
/v1/places/{place}Returns the full place for a place ID taken from a /places suggestion.
On top of the fields carried by the suggestion, the response adds coordinates, language and the underlying dataset record.
Each request decrements your lookup balance. An unknown ID returns 404.
Path parameters
placestringID of place suggestion
Query parameters
api_keystring optionalAPI Key
Your unique identifier that allows access to our APIs.
Begins
ak_. Available from your dashboard.tagsstring optionalTags
A comma separated list of tags to query over.
Useful if you want to specify the circumstances in which the request was made.
If you specify multiple tags, the response comprises only requests that satisfy all of them. Searching
"foo,bar"queries only requests tagged both"foo"and"bar".
Response
The result contains the full place record, including coordinates, timezone,
country codes, and a native object with complete GeoNames metadata (admin
levels, alternate names, population, elevation, etc.).
resultPlaceA geographical place: an administrative division, capital or seat of administration city drawn from GeoNames.
GET /placesreturns a suggestion for each match andGET /places/{place}resolves a suggestion id to the full place.nativeholds the underlying GeoNames record.idstringGlobal unique internally generated identifier for a place
datasetstringIndicates the provenance of a place.
namestringPlace name
descriptive_namestringLonger form description of the place.
country_isostring3 letter country code (ISO 3166-1)
languagestringLanguage represented by 2 letter ISO Code (639-1)
longitudeLongitudeThe longitude of the address or postcode (WGS84).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
- string
- number
latitudeLatitudeThe latitude of the address or postcode (WGS84).
Can be a positive or negative decimal. E.g.
51.5083983.Returns an empty string if no location data is available.
- string
- number
nativeone ofNative representation of a place
GeoNames Place Full guide
The GeoNames record backing a place, as indexed.
Only administrative divisions (feature class
A) and capital or seat-of-administration cities (feature codesPPLCandPPLA*) are indexed. Historical features (feature codes ending inH) are excluded.idstringUnique place ID
datasetstringIndicates the provenance of a place
geonameidintegerUnique identifier for GeoNames place
namestringPlace name (UTF8)
asciinamestringPlace name (ASCII). Empty string if not available
alternatenamesstring[]List of alternate names for the place
languagestringLanguage represented by 2 letter ISO Code (639-1)
latitudeLatitudeThe latitude of the address or postcode (WGS84).
Can be a positive or negative decimal. E.g.
51.5083983.Returns an empty string if no location data is available.
- string
- number
longitudeLongitudeThe longitude of the address or postcode (WGS84).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
- string
- number
feature_classstringGeoNames single letter feature class (http://www.geonames.org/export/codes.html). Only two are indexed
ACountry, state, regionPCity, village
feature_codestringFull GeoNames feature code (http://www.geonames.org/export/codes.html)
country_codestring2 letter ISO country code. Empty string if not available
country_isostring3 letter ISO country code derived from
country_code. Empty string if the country cannot be resolvedcc2string[]List of other country codes mapping to this place
admin1_namestringName of first administrative area. Empty string if not available
admin1_geonameidintegerGeoName ID for first administrative area
admin1_codestringFipscode (subject to change to iso code)
admin2_namestringName of second administrative area. Empty string if not available
admin2_geonameidintegerGeoName ID for second administrative area
admin2_codestringCode for the second administrative division
admin3_codestringCode for third level administrative division
admin4_codestringCode for fourth level administrative division
populationstringPopulation at place. Represented as a string as it can be larger than a 32 bit integer
elevationintegerElevation in metres.
nullif not availabledemintegerDigital elevation model (srtm3 or gtopo30), average elevation in metres
timezonestringThe IANA timezone ID. Empty string if not available
modification_datestringDate the GeoNames record was last modified
The result sits inside the standard { result, code, message } envelope — see
the API reference for the wrapper format.