yngwi
Joined: 21/01/2021 14:33:23
Messages: 1
Offline
|
Hi,
I am trying to get the hierarchy of a place using the secure API endpoint and have noticed that the response is different from the one of the non-secure one and is incorrect (see below, "ADM2" is missing from the secure response). Does anyone know how this can happen or if I can do something to fix this?
Best,
Daniel
https://secure.geonames.org/hierarchyJSON?geonameId=146268
Code:
{
"geonames": [
{
"lng": "0",
"geonameId": 6295630,
"name": "Earth",
"fclName": "parks,area, ...",
"toponymName": "Earth",
"fcodeName": "area",
"adminName1": "",
"lat": "0",
"fcl": "L",
"fcode": "AREA",
"population": 6814400000
},
{
"lng": "9.14062",
"geonameId": 6255148,
"name": "Europe",
"fclName": "parks,area, ...",
"toponymName": "Europe",
"fcodeName": "continent",
"adminName1": "",
"lat": "48.69096",
"fcl": "L",
"fcode": "CONT",
"population": 741000000
},
{
"adminCode1": "00",
"lng": "33",
"geonameId": 146669,
"toponymName": "Republic of Cyprus",
"countryId": "146669",
"fcl": "A",
"population": 1189265,
"countryCode": "CY",
"name": "Cyprus",
"fclName": "country, state, region,...",
"countryName": "Cyprus",
"fcodeName": "independent political entity",
"adminName1": "",
"lat": "35",
"fcode": "PCLI"
},
{
"adminCode1": "04",
"lng": "33.1",
"geonameId": 146267,
"toponymName": "Nicosia District",
"countryId": "146669",
"fcl": "A",
"population": 326980,
"countryCode": "CY",
"name": "Nicosia",
"fclName": "country, state, region,...",
"adminCodes1": {
"ISO3166_2": "01"
},
"countryName": "Cyprus",
"fcodeName": "first-order administrative division",
"adminName1": "Nicosia",
"lat": "35.06667",
"fcode": "ADM1"
},
{
"adminCode1": "04",
"lng": "33.3642",
"geonameId": 146268,
"toponymName": "Nicosia",
"countryId": "146669",
"fcl": "P",
"population": 200452,
"countryCode": "CY",
"name": "Nicosia",
"fclName": "city, village,...",
"adminCodes1": {
"ISO3166_2": "01"
},
"countryName": "Cyprus",
"fcodeName": "capital of a political entity",
"adminName1": "Nicosia",
"lat": "35.17531",
"fcode": "PPLC"
}
]
}
http://geonames.org/hierarchyJSON?geonameId=146268
Code:
{
"geonames": [
{
"lng": "0",
"geonameId": 6295630,
"name": "Earth",
"fclName": "parks,area, ...",
"toponymName": "Earth",
"fcodeName": "area",
"adminName1": "",
"lat": "0",
"fcl": "L",
"fcode": "AREA",
"population": 6814400000
},
{
"lng": "9.14062",
"geonameId": 6255148,
"name": "Europe",
"fclName": "parks,area, ...",
"toponymName": "Europe",
"fcodeName": "continent",
"adminName1": "",
"lat": "48.69096",
"fcl": "L",
"fcode": "CONT",
"population": 741000000
},
{
"adminCode1": "00",
"lng": "33",
"geonameId": 146669,
"toponymName": "Republic of Cyprus",
"countryId": "146669",
"fcl": "A",
"population": 1189265,
"countryCode": "CY",
"name": "Cyprus",
"fclName": "country, state, region,...",
"countryName": "Cyprus",
"fcodeName": "independent political entity",
"adminName1": "",
"lat": "35",
"fcode": "PCLI"
},
{
"adminCode1": "04",
"lng": "33.1",
"geonameId": 146267,
"toponymName": "Nicosia District",
"countryId": "146669",
"fcl": "A",
"population": 326980,
"countryCode": "CY",
"name": "Nicosia",
"fclName": "country, state, region,...",
"adminCodes1": {
"ISO3166_2": "01"
},
"countryName": "Cyprus",
"fcodeName": "first-order administrative division",
"adminName1": "Nicosia",
"lat": "35.06667",
"fcode": "ADM1"
},
{
"adminCode1": "04",
"lng": "33.36081",
"geonameId": 11920109,
"toponymName": "Nicosia Municipality",
"countryId": "146669",
"fcl": "A",
"population": 0,
"countryCode": "CY",
"name": "Nicosia Municipality",
"fclName": "country, state, region,...",
"adminCodes1": {
"ISO3166_2": "01"
},
"countryName": "Cyprus",
"fcodeName": "second-order administrative division",
"adminName1": "Nicosia",
"lat": "35.16944",
"fcode": "ADM2"
},
{
"adminCode1": "04",
"lng": "33.3642",
"geonameId": 146268,
"toponymName": "Nicosia",
"countryId": "146669",
"fcl": "P",
"population": 200452,
"countryCode": "CY",
"name": "Nicosia",
"fclName": "city, village,...",
"adminCodes1": {
"ISO3166_2": "01"
},
"countryName": "Cyprus",
"fcodeName": "capital of a political entity",
"adminName1": "Nicosia",
"lat": "35.17531",
"fcode": "PPLC"
}
]
}
|