thampiman / reverse-geocoder

A fast, offline reverse geocoder in Python
GNU Lesser General Public License v2.1
1.87k stars 160 forks source link

Wrong results #38

Open brianhtruong opened 6 years ago

brianhtruong commented 6 years ago

Compared to google's reverse geocoder. Rg.search and mode=1 return the same results. Is this API for approximating?

screen shot 2018-03-20 at 3 06 31 pm
thampiman commented 5 years ago

@brianhtruong Apologies for the delay in responding. The library is based on the GeoNames data and so finds the nearest city in terms of Euclidean distance. There may be issues for coordinates near the border due to that. To circumvent this issue, I've added support for custom data sources. You can find more details here: http://ajaythampi.com/blog/2016/9/16/reverse-geocoding-custom-data-sources. Hope this helps.