Joined: 09/09/2021 18:02:03
This is a strange situation. On the geonames website, the information is correct, but in allCountries.txt there are some localities in all cities. For example, "Penalva do Castelo" is an admin2 in "Aveiro", "Braga", "Porto", "Lisboa", etc. It is in almost all cities, if not all cities. And it is not the only one that is repeated.
The code in admin2Codes.txt for "Penalva do Castelo" is PT.22.1811, but in allCountries.txt, the admin 2 code for "Penalva do Castelo" is 11. And the same goes for "Penedono". For example, "Penedono" is PT.22.1812 in admin2Codes.txt and, in allCountries.txt, its admin 2 code is 12. In allCountries.txt, the code is always the last two digits of admin2Codes.txt for the repeated localities.
Is there any way to fix allCountries.txt file or is there any way to reconstruct the information of this file with the other files available?