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

country_info.go does not handle new CountryInfo.txt format #42

Open
admPiett opened this issue Mar 31, 2020 · 0 comments
Open

country_info.go does not handle new CountryInfo.txt format #42

admPiett opened this issue Mar 31, 2020 · 0 comments

Comments

@admPiett
Copy link

Looks like there was a change, possibly by mistake, in the CountryInfo.txt file from Geonames. In cases where a country has a neighbor, the tab for the EquivalentFipsCode field is not included at the end of the line, resulting in len(raw) to be only 18, not 19. Should handle this case by possibly only verifying that raw has a length of at least 17 and only add the neighbors and/or EquivalentFipsCode if its the 18/19.

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

1 participant