aplaza
Joined: 02/05/2019 21:11:33
Messages: 11
Offline
|
The web interface is OK now but when I use the API I still get two entries. Could someone help me with this issue?
Thanks.
Here's the query I just ran: https://secure.geonames.net/searchJSON?name_startsWith=West Caldwell&q=New Jersey&country=US&operator=and&featureCode=PPL&maxRows=50&type=json&username=ricohmds&style=full and the results are:
{
"totalResultsCount": 2,
"geonames": [
{
"timezone": {
"gmtOffset": -5,
"timeZoneId": "America/New_York",
"dstOffset": -4
},
"bbox": {
"east": -74.2850639666534,
"south": 40.83952845124857,
"north": 40.857515748751425,
"west": -74.3088460333466,
"accuracyLevel": 1
},
"asciiName": "West Caldwell",
"astergdem": 59,
"countryId": "6252001",
"fcl": "P",
"srtm3": 59,
"score": 20.282623291015625,
"adminId2": "5097707",
"adminId3": "5106240",
"countryCode": "US",
"adminCodes1": {
"ISO3166_2": "NJ"
},
"adminId1": "5101760",
"lat": "40.84852",
"fcode": "PPL",
"continentCode": "NA",
"elevation": 54,
"adminCode2": "013",
"adminCode3": "78510",
"adminCode1": "NJ",
"lng": "-74.29695",
"geonameId": 7259155,
"toponymName": "West Caldwell",
"population": 0,
"adminName5": "",
"adminName4": "",
"adminName3": "West Caldwell Township",
"alternateNames": [
{
"name": "کالدول غربی، نیوجرسی",
"lang": "fa"
},
{
"name": "Вэст Калдвэл",
"lang": "kk"
},
{
"name": "https://en.wikipedia.org/wiki/West_Caldwell%2C_New_Jersey",
"lang": "link"
},
{
"name": "Вест Колдвел",
"lang": "sr"
},
{
"name": "Q1082435",
"lang": "wkdt"
}
],
"adminName2": "Essex",
"name": "West Caldwell",
"fclName": "city, village,...",
"countryName": "United States",
"fcodeName": "populated place",
"adminName1": "New Jersey"
},
{
"timezone": {
"gmtOffset": -5,
"timeZoneId": "America/New_York",
"dstOffset": -4
},
"bbox": {
"east": -74.2872531418214,
"south": 40.82991797481659,
"north": 40.85194782518341,
"west": -74.3163776581786,
"accuracyLevel": 2
},
"asciiName": "West Caldwell",
"astergdem": 59,
"countryId": "6252001",
"fcl": "P",
"srtm3": 64,
"score": 16.54784393310547,
"adminId2": "5097707",
"adminId3": "5106240",
"countryCode": "US",
"adminCodes1": {
"ISO3166_2": "NJ"
},
"adminId1": "5101760",
"lat": "40.84093",
"fcode": "PPL",
"continentCode": "NA",
"elevation": 58,
"adminCode2": "013",
"adminCode3": "78510",
"adminCode1": "NJ",
"lng": "-74.30182",
"geonameId": 5106238,
"toponymName": "West Caldwell",
"population": 7613,
"adminName5": "",
"adminName4": "",
"adminName3": "West Caldwell Township",
"alternateNames": [
{
"isPreferredName": true,
"name": "West Caldwell",
"lang": "en"
},
{
"name": "USWCL",
"lang": "unlc"
}
],
"adminName2": "Essex",
"name": "West Caldwell",
"fclName": "city, village,...",
"countryName": "United States",
"fcodeName": "populated place",
"adminName1": "New Jersey"
}
]
}
|