tomayac / local-reverse-geocoder

Local reverse geocoder for Node.js based on GeoNames data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

when chossing specific country result are wrong

eligrifel opened this issue · comments

asciiName is completely different

with specific country
[
{
"geoNameId": "293775",
"name": "Ramat Tiomkin",
"asciiName": "Ramat Tiomkin",
"alternateNames": "Ramat Tiomkin,Ramat Tyomkin,Ramat Tyomqin",
"latitude": "32.31944",
"longitude": "34.85083",
"featureClass": "P",
"featureCode": "PPLX",
"countryCode": "IL",
"cc2": null,
"admin1Code": "02",
"admin2Code": null,
"admin3Code": null,
"admin4Code": null,
"population": "0",
"elevation": null,
"dem": "43",
"timezone": "Asia/Jerusalem",
"modificationDate": "2015-04-08",
"distance": 0.31574142652299
}
]

without

{
"geoNameId": "294071",
"name": "Netanya",
"asciiName": "Netanya",
"alternateNames": "Lungsod ng Ntanya,Natania,Natanya,Nathanya,Netan'ja,Netania,Netanija,Netanja,Netanya,Netánja,Ntanya,na ta neiy,nattaniya,nei tan ya,netaniya,netanya,ntanya,ntnyh,Νετάνια,Нетания,Нетанья,Нетаня,Нетанія,Нетанја,נתניה,نتانيا,نتانیا,நத்தானியா,นาตาเนีย,ネタニヤ,内坦亚,네타냐",
"latitude": "32.33291",
"longitude": "34.85992",
"featureClass": "P",
"featureCode": "PPL",
"countryCode": "IL",
"cc2": null,
"admin1Code": "02",
"admin2Code": null,
"admin3Code": null,
"admin4Code": null,
"population": "228204",
"elevation": null,
"dem": "38",
"timezone": "Asia/Jerusalem",
"modificationDate": "2023-02-07",
"distance": 1.4216628336859574
}
]

This is most likely a distance calculation issue. What's the latitude/longitude you're querying?

Looks like this is the same core reason as outlined in #83.

thank you