Skip to content
New issue

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

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

Already on GitHub? # to your account

creating rg_cities1000.csv #1

Closed
bdon opened this issue Mar 28, 2015 · 3 comments
Closed

creating rg_cities1000.csv #1

bdon opened this issue Mar 28, 2015 · 3 comments

Comments

@bdon
Copy link
Contributor

bdon commented Mar 28, 2015

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'}]
@thampiman
Copy link
Owner

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!

@bdon
Copy link
Contributor Author

bdon commented Mar 28, 2015

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...

@bdon
Copy link
Contributor Author

bdon commented Mar 28, 2015

created patch [#4], closing

@bdon bdon closed this as completed Mar 28, 2015
@jp-embedded jp-embedded mentioned this issue Aug 2, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants