Skip to content

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

@admPiett

Description

@admPiett

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions