<?php
// Sweden
function location_province_list_sw() {
return array('ST' => "Stockholm",
'UP' => "Uppsala",
'SO' => "Sodermanland",
'OG' => "Ostergotland",
'JO' => "Jonkoping",
'KR' => "Kronoberg",
'KA' => "Kalmar",
'GO' => "Gotland",
'BL' => "Blekinge",
'SK' => "Skane",
'HA' => "Halland",
'VG' => "Vastra Gotaland",
'VL' => "Varmland",
'OR' => "Orebro",
'VM' => "Vastmanland",
'DA' => "Dalarna",
'GA' => "Gavleborg",
'VN' => "Vasternorrland",
'JA' => "Jamtland",
'VB' => "Vasterbotten",
'NO' => "Norrbotten");
}
?>
What about äåö?
<?php
// Sweden
function location_province_list_sw() {
return array('ST' => "Stockholm",
'UP' => "Uppsala",
'SO' => "Södermanland",
'OG' => "Östergotland",
'JO' => "Jönköping",
'KR' => "Kronoberg",
'KA' => "Kalmar",
'GO' => "Gotland",
'BL' => "Blekinge",
'SK' => "Skåne",
'HA' => "Halland",
'VG' => "Västra Götaland",
'VL' => "Värmland",
'OR' => "Örebro",
'VM' => "Västmanland",
'DA' => "Dalarna",
'GA' => "Gävleborg",
'VN' => "Västernorrland",
'JA' => "Jämtland",
'VB' => "Västerbotten",
'NO' => "Norrbotten");
}
?>
And actually, these are the correct letters:
<?php
// Sweden
function location_province_list_sw() {
return array('AB' => "Stockholm",
'C' => "Uppsala",
'D' => "Södermanland",
'E' => "Östergotland",
'F' => "Jönköping",
'G' => "Kronoberg",
'H' => "Kalmar",
'I' => "Gotland",
'K' => "Blekinge",
'M' => "Skåne",
'N' => "Halland",
'O' => "Västra Götaland",
'S' => "Värmland",
'T' => "Örebro",
'U' => "Västmanland",
'W' => "Dalarna",
'X' => "Gävleborg",
'Y' => "Västernorrland",
'Z' => "Jämtland",
'AC' => "Västerbotten",
'BD' => "Norrbotten");
}
?>
And here is a list of Swedish provinces:
Blekinge
Bohuslän
Dalarna
Dalsland
Gotland
Gästrikland
Halland
Hälsingland
Härjedalen
Jämtland
Lappland
Medelpad
Norrbotten
Närke
Skåne
Småland
Södermanland
Uppland
Värmland
Västerbotten
Västergötland
Västmanland
Ångermanland
Öland
Östergötland
Comments
Comment #1
ankur commentedWill let this sit until I can answer the question: of provinces and counties, which one is more important to mapping services and the Swedish post office?
-Ankur
Comment #2
robertdouglass commentedWhat is one to do with the extra 5 provinces you listed? Do they have no code?
Comment #3
prifre commentedHi,
Please fix so the list does have swedish characters. Then I suggest you close the bug.
function location_province_list_sw() {
return array('ST' => "Stockholm",
'UP' => "Uppsala",
'SO' => "Södermanland",
'OG' => "Östergotland",
'JO' => "Jönköping",
'KR' => "Kronoberg",
'KA' => "Kalmar",
'GO' => "Gotland",
'BL' => "Blekinge",
'SK' => "Skåne",
'HA' => "Halland",
'VG' => "Västra Götaland",
'VL' => "Värmland",
'OR' => "Örebro",
'VM' => "Västmanland",
'DA' => "Dalarna",
'GA' => "Gävleborg",
'VN' => "Västernorrland",
'JA' => "Jämtland",
'VB' => "Västerbotten",
'NO' => "Norrbotten");
}
?>
Would be fine. Provinces in Sweden are not too important in general. There are not so many cities and zip-codes usually tell more of where people are living.
If you have any more issues related to Sweden, I'll be glad to help...
Comment #4
ankur commentedAck. I would like to know whether it is better to use counties or provinces for Sweden.
The problem is that I want address forms to give options that Swedish web users are used to. When Swedes fill out web forms with their addresses, does the form usually ask for the county name or the province name? If they ask for both, which one is the more conventional/preferred one?
My next question would be which of the above lists uses the preferred division (again, that's county vs. province).
-Ankur
Comment #5
prifre commentedSwedish post offices only care about CITIES.
Provinces might be relevant in schools, but no-one really cares.
Counties are fun and I think more relevant, but also much less important than cities..
Comment #6
bdragon commentedChanging component to Data Update.
Comment #7
brmassa commentedGuys,
fixed on HEAD. Soon on Location 3
regards,
massa
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
odd hill commentedÖstergotland should be Östergötland.
I'd also like to see an alphabetical order. Of course this could be altered when a module presents the list, but this seems better.
I would submit a patch, but it seems like more work than necessary..
Comment #10
legolasboClosing old D6 issues as D6 is end of life