Hello GeoNames team,
I found a bit of a "time capsule" bug in the Swedish data regarding Heby. Back in 2007, Heby moved from Västmanland County to Uppsala County. While the site shows the correct info in some places, the Postal Code database and the SE.txt export are still using the old 2006 data.
The old municipality code 1917 is still being used in the exports, but it has not existed for almost 20 years. It should be 0331.
The stale link: https://www.geonames.org/postal-codes/SE/U/1917/heby.html (Shows Vastmanland/1917)
The export file (SE.txt): It is still dumping lines like this: SE,740 21,Järlåsa,Västmanland,U,Heby,1917,,,59.8833,17.2,4
To fix this and align with current Swedish standards (SCB) these records need an update:
Admin1 (County): Change from Västmanland (U) to Uppsala (C)
Admin2 (Municipality): Change from 1917 to 0331
From what I have gathered there seems to be 21 entries with the wrong municipality and county code:
SE,740 21,Järlåsa,Västmanland,U,Heby,1917,,,59.8833,17.2,4
SE,740 44,Tärnsjö,Västmanland,U,Heby,1917,,,60.15,16.9333,
SE,740 45,Tärnsjö,Västmanland,U,Heby,1917,,,60.15,16.9333,4
SE,740 46,Östervåla,Västmanland,U,Heby,1917,,,60.1833,17.1833,4
SE,740 47,Harbo,Västmanland,U,Heby,1917,,,60.1,17.2,4
SE,740 48,Östervåla,Västmanland,U,Heby,1917,,,60.1833,17.1833,
SE,744 01,Heby,Västmanland,U,Heby,1917,,,59.9381,16.8622,4
SE,744 02,Morgongåva,Västmanland,U,Heby,1917,,,59.9333,16.95,4
SE,744 21,Heby,Västmanland,U,Heby,1917,,,59.9381,16.8622,4
SE,744 31,Heby,Västmanland,U,Heby,1917,,,59.9381,16.8622,4
SE,744 32,Heby,Västmanland,U,Heby,1917,,,59.9381,16.8622,4
SE,744 50,Morgongåva,Västmanland,U,Heby,1917,,,59.9333,16.95,4
SE,744 51,Morgongåva,Västmanland,U,Heby,1917,,,59.9333,16.95,4
SE,744 88,Heby,Västmanland,U,Heby,1917,,,59.9381,16.8622,4
SE,744 91,Heby,Västmanland,U,Heby,1917,,,59.9381,16.8622,4
SE,744 92,Huddungeby,Västmanland,U,Heby,1917,,,60.05,16.9833,4
SE,744 93,Runhällen,Västmanland,U,Heby,1917,,,60.0333,16.8167,4
SE,744 94,Morgongåva,Västmanland,U,Heby,1917,,,59.9333,16.95,4
SE,744 95,Vittinge,Västmanland,U,Heby,1917,,,59.9,17.0667,4
SE,744 96,Järlåsa,Västmanland,U,Heby,1917,,,59.8833,17.2,
SE,744 97,Järlåsa,Västmanland,U,Heby,1917,,,59.8833,17.2,
You can see the current official county/municipality list from Statistics Sweden (SCB) here:
https://www.scb.se/hitta-statistik/regional-statistik-och-kartor/regionala-indelningar/lan-och-kommuner/lan-och-kommuner-i-kodnummerordning/
Thanks for keeping the database running!
Kindly,
Niclas