Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geocoder wrong results for Switzerland coordinate #41

Open
pavelsimo opened this issue Oct 29, 2018 · 1 comment
Open

Geocoder wrong results for Switzerland coordinate #41

pavelsimo opened this issue Oct 29, 2018 · 1 comment

Comments

@pavelsimo
Copy link

Consider the following coordinate:

46.601255, 10.422899
https://goo.gl/maps/jEzFrvcGmMQ2

The "reverse-geocoder" library report this coordinates is located in Italy (IT) when the actual location is Switzerland (CH).

@thampiman
Copy link
Owner

@pavelsimo There is an issue with locations near the border. Since the library is based on the GeoNames database, it finds a city that's closest in terms of Euclidean distance. In order to circumvent this, I've added support for custom data sources and have blogged about it here: http://ajaythampi.com/blog/2016/9/16/reverse-geocoding-custom-data-sources. Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants