<?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

ankur’s picture

Will 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

robertdouglass’s picture

What is one to do with the extra 5 provinces you listed? Do they have no code?

prifre’s picture

Hi,

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...

ankur’s picture

Ack. 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

prifre’s picture

Priority: Normal » Minor

Swedish 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..

bdragon’s picture

Component: Code » Data update

Changing component to Data Update.

brmassa’s picture

Status: Needs review » Fixed

Guys,

fixed on HEAD. Soon on Location 3

regards,

massa

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

odd hill’s picture

Status: Closed (fixed) » Active

Ö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.

function location_province_list_se() {
  return array(
    'BL' => "Blekinge",
    'DA' => "Dalarna",
    'GO' => "Gotland",
    'GA' => "Gävleborg",
    'HA' => "Halland",
    'JA' => "Jämtland",
    'JO' => "Jönköping",
    'KA' => "Kalmar",
    'KR' => "Kronoberg",
    'NO' => "Norrbotten",
    'SK' => "Skåne",
    'ST' => "Stockholm",
    'SO' => "Södermanland",
    'UP' => "Uppsala",
    'VL' => "Värmland",
    'VB' => "Västerbotten",
    'VN' => "Västernorrland",
    'VM' => "Västmanland",
    'VG' => "Västra Götaland",
    'OR' => "Örebro",
    'OG' => "Östergötland",
  );
}

I would submit a patch, but it seems like more work than necessary..

legolasbo’s picture

Status: Active » Closed (outdated)

Closing old D6 issues as D6 is end of life