thampiman / reverse-geocoder

A fast, offline reverse geocoder in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

creating rg_cities1000.csv

bdon opened this issue · comments

Hi, thanks for this library. Is the script to create the data file from a GeoNames dump available? The one committed seems to be missing some United States cities e.g. this lookup for a point in NYC:

>>> reverse_geocoder.search([(40.729177554196376,-73.99343490600586)])
[{'name': 'Byram', 'cc': 'US', 'lon': '-73.65374', 'admin1': 'Connecticut', 'admin2': 'Fairfield County', 'lat': '41.00426'}]

Yes... it is in init.py. You can delete the rg_cities1000.csv file from the package folder and rerun the search. The latest dump from GeoNames is then used to recreate it. Let me know if that fixes the problem. Thanks!

Thanks, I see the script now. There seems to be about 6000 rows from the GeoNames file missing in the created file, trying to figure out why that is...

created patch [#4], closing