Skip to content

Commit

Permalink
Merge pull request #86 from YordanSoares/master
Browse files Browse the repository at this point in the history
Added Denmark + 1 Update to `state/CO.php`
  • Loading branch information
YordanSoares committed May 27, 2020
2 parents 9ded986 + 99bc218 commit eb751cc
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 3 deletions.
133 changes: 133 additions & 0 deletions trunk/places/DK.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?php

/**
* Municipalities of Denmark
* - 98 municipalities (kommuner)
*
* Source:
* - https://da.wikipedia.org/wiki/Strukturreformen
* - https://da.wikipedia.org/wiki/Kommuner_i_Danmark
* - https://en.wikipedia.org/wiki/Municipalities_of_Denmark
*
* @author Yordan Soares <contacto@yordansoar.es> | https://yordansoar.es/
* @version 1.0.0
* @license http://www.gnu.org/licenses/gpl-2.0.html
*/

global $places;

$places['DK'] = array(
// Region Hovedstaden
'DK-84' => array(
'Albertslund',
'Allerød',
'Ballerup',
'Bornholm',
'Brøndby',
'Dragør',
'Egedal',
'Fredensborg',
'Frederiksberg',
'Frederikssund',
'Furesø',
'Gentofte',
'Gladsaxe',
'Glostrup',
'Gribskov',
'Halsnæs',
'Helsingør',
'Herlev',
'Hillerød',
'Hvidovre',
'Høje-Taastrup',
'Hørsholm',
'Ishøj',
'København',
'Lyngby-Taarbæk',
'Rudersdal',
'Rødovre',
'Tårnby',
'Vallensbæk',
),
// Region Midtjylland
'DK-82' => array(
'Favrskov',
'Hedensted',
'Herning',
'Holstebro',
'Horsens',
'Ikast-Brande',
'Lemvig',
'Norddjurs',
'Odder',
'Randers',
'Ringkøbing-Skjern',
'Samsø',
'Silkeborg',
'Skanderborg',
'Skive',
'Struer',
'Syddjurs',
'Viborg',
'Aarhus',
),
// Region Nordjylland
'DK-81' => array(
'Brønderslev',
'Frederikshavn',
'Hjørring',
'Jammerbugt',
'Læsø',
'Mariagerfjord',
'Morsø',
'Rebild',
'Thisted',
'Vesthimmerland',
'Aalborg',
),
// Region Sjælland
'DK-85' => array(
'Faxe',
'Greve',
'Guldborgsund',
'Holbæk',
'Kalundborg',
'Køge',
'Lejre',
'Lolland',
'Næstved',
'Odsherred',
'Ringsted',
'Roskilde',
'Slagelse',
'Solrød',
'Sorø',
'Stevns',
'Vordingborg',
),
// Region Syddanmark
'DK-83' => array(
'Assens',
'Billund',
'Esbjerg',
'Fanø',
'Fredericia',
'Faaborg-Midtfyn',
'Haderslev',
'Kerteminde',
'Kolding',
'Langeland',
'Middelfart',
'Nordfyn',
'Nyborg',
'Odense',
'Svendborg',
'Sønderborg',
'Tønder',
'Varde',
'Vejen',
'Vejle',
'Ærø',
'Aabenraa',
),
);
4 changes: 1 addition & 3 deletions trunk/states/CO.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
*
* @author José Ayram <ayramj@gmail.com>
* @author José Ayram
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
https://www.iso.org/obp/ui/#iso:code:3166:CO
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/

global $states;
Expand Down
26 changes: 26 additions & 0 deletions trunk/states/DK.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

/**
* Regions of Denmark
* - 5 regions (regioner)
*
* Source:
* - https://da.wikipedia.org/wiki/Strukturreformen
* - https://da.wikipedia.org/wiki/Danmarks_regioner
* - https://en.wikipedia.org/wiki/Regions_of_Denmark
* - https://www.iso.org/obp/ui/#iso:code:3166:DK
*
* @author Yordan Soares <contacto@yordansoar.es> | https://yordansoar.es/
* @version 1.0.0
* @license http://www.gnu.org/licenses/gpl-2.0.html
*/

global $states;

$states['DK'] = array(
'DK-84' => 'Hovedstaden',
'DK-82' => 'Midtjylland',
'DK-81' => 'Nordjylland',
'DK-85' => 'Sjælland',
'DK-83' => 'Syddanmark',
);

0 comments on commit eb751cc

Please sign in to comment.