GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Mixed admin_code1 in postal codes  XML
Forum Index -> Postal Codes
Author Message

Joined: 05/02/2020 13:01:42
Messages: 2

The admin_code1 seems to be a mix of ISO and FIPS but I also found two countries where none of them is used, Bulgaria and Malaysia.

The codes specified in or are completely different from what is in

There are codes like BGS for Burgas (ISO code: 02).

Mapping them by admin_name1 does work but there is some manual work involved.

 {'Vratsa': 'bg.06',
  'Sofia-Grad': 'bg.22',
  'Gabrovo': 'bg.07',
  'Sofia': 'bg.23',
  'Dobrich': 'bg.08',
  'Stara Zagora': 'bg.24',
  'Kardzhali': 'bg.09',
  'Targovishte': 'bg.25',
  'Kyustendil': 'bg.10',
  'Haskovo': 'bg.26',
  'Lovech': 'bg.11',
  'Shumen': 'bg.27',
  'Montana': 'bg.12',
  'Yambol': 'bg.28',
  'Pazardzhik': 'bg.13',
  'Pernik': 'bg.14',
  'Pleven': 'bg.15',
  'Plovdiv': 'bg.16',
  'Blagoevgrad': 'bg.01',
  'Razgrad': 'bg.17',
  'Burgas': 'bg.02',
  'Ruse': 'bg.18',
  'Varna': 'bg.03',
  'Silistra': 'bg.19',
  'Veliko Tarnovo': 'bg.04',
  'Sliven': 'bg.20',
  'Vidin': 'bg.05',
  'Smolyan': 'bg.21',
  'Veliko Turnovo': 'bg.04',
  'Vraca': 'bg.06',
  'Kjustendil': 'bg.10',
  'Smoljan': 'bg.21',
  'Sofija (stolica)': 'bg.22',
  'Sofija': 'bg.23',
  'Turgovishhe': 'bg.25',
  'Khaskovo': 'bg.26',
  'Jambol': 'bg.28'}

My question is if you are aware of this issue and plan to normalize admin_code1 or if there is an alternative mapping other than ISO or what is in admin1CodesASCII.txt. Here are all the undocumented admin codes I found (they are all lowercased and have the country_code at the start:


The same doesn't happen in the dataset for example. There are sometimes some deleted codes but it's not mixed or contains unknown codes.
Forum Index -> Postal Codes
Go to:   
Powered by JForum 2.1.5 © JForum Team