Geographic coordinates of populated place
GET /{lang}/places/geoname
Returns geographic coordinates for the given placename (region, city, village, etc.). The method returns the place whose name is most similar to the search string. Service based on GeoNames database.
Request
- Base URLhttps://api.opentripmap.com/0.1
- AuthAPI key in query parameter apikey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
langstring required
Two-letter language code (ISO639-1). The following values are available: en (english), ru (russian)
Query parameters
namestring required
Placename
countrystring
Two-letter country code, ISO-3166 (optional). Default is all countries.
Response
Returns geographic coordinates
Example response
{
"country": "RU",
"timezone": "Europe/Moscow",
"name": "Moscow",
"lon": 37.61556,
"lat": 55.75222,
"population": 10381222
}Changes
No recorded changes to this operation across all 1 revision of this API.