Show by ID
const url = 'https://api.wink.travel/reference-data/geo/1609350';const options = { method: 'GET', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.wink.travel/reference-data/geo/1609350 \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Returns a single geo-name by its GeoNames identifier, throwing 404 if none exists.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”GeoNames database identifier (numeric string)
Example
1609350Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”Successfully retrieved geo-name by ID
Example
Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Unauthorized
object
object
Forbidden
object
object
Geo-name with the specified ID not found
GeoNames have been created at https://geonames.org and contain geographical destinations we use as geoname data to associate travel inventory with a location.
object
GeoName identifier
GeoNameLightweight type
Name of city
Url name
Ascii name of city
Coordinate points of the city
object
Timezone
Country
object
ISO code
Country name
Country capital
Continent code
Currency code
Currency name
Country GeoNames identifier
Country sub division
object
Sub-country name
Sub-country ascii name
Sub-country GeoNames identifier
Country sub sub division
object
Example
nullInternal Server Error
object
Example generated
{}