Find Geo Name by Id
GET
/reference-data/geo/{geoNameId}
const url = 'https://api.wink.travel/reference-data/geo/875430';const options = {method: 'GET', headers: {'Wink-Version': '2.0'}};
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/875430 \ --header 'Wink-Version: 2.0'Finds geo-name by given identifier.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” geoNameId
required
string
Geo-name identifier
Example
875430Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Responses
Section titled “ Responses ”OK
Media type application/json
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
geoNameId
GeoName identifier
string
type
GeoNameLightweight type
string
name
Name of city
string
urlName
Url name
string
asciiName
Ascii name of city
string
location
Coordinate points of the city
object
x
number format: double
y
number format: double
type
string
coordinates
Array<number>
featureCode
string
countryCode
string
timezone
Timezone
string
country
Country
object
iso
ISO code
string
name
Country name
string
capital
Country capital
string
continent
Continent code
string
currencyCode
Currency code
string
currencyName
Currency name
string
geoNameId
Country GeoNames identifier
string
subCountry
Country sub division
object
name
Sub-country name
string
asciiName
Sub-country ascii name
string
geoNameId
Sub-country GeoNames identifier
string
subSubCountry
Country sub sub division
object
name
string
asciiName
string
geoNameId
string
Example
nullBad Request
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Unauthorized
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Forbidden
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Internal Server Error
object
Example generated
{}