Skip to content

Commit

Permalink
Better treatment of palestinian territories (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoriniere authored Jul 3, 2020
1 parent b794540 commit 8ef00cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion geoconvert/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__author__ = "Jurismarches <it@jurismarches.com>"
__version__ = "3.15.0"
__version__ = "3.16.0"
12 changes: 7 additions & 5 deletions geoconvert/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
),
"32": ("59", ["59", "62", "02", "60", "80"]), # merges 31, 22
"28": ("76", ["27", "76", "14", "50", "61"]), # merges 23, 25
"24": ("45", ["45", "18", "28", "36", "37", "41"]),
}

departments = {
Expand Down Expand Up @@ -391,6 +390,7 @@
("palaos", "PW"),
("palestinien occupe", "PS"),
("palestine", "PS"),
("territoires autonomes palestiniens", "PS"),
("panama", "PA"),
("papouasie-nouvelle-guinee", "PG"),
("paraguay", "PY"),
Expand Down Expand Up @@ -668,6 +668,7 @@
("state of palestine", "PS"),
("palestine, state of", "PS"),
("palestinian territories", "PS"),
("west bank", "PS"),
("panama", "PA"),
("pap. new guinea", "PG"),
("papua new guinea", "PG"),
Expand Down Expand Up @@ -1217,14 +1218,15 @@
"""An association from country to other country depending (in some way) on them
"""
country_territories = {
"FR": frozenset(
["RE", "TF", "BL", "YT", "WF", "NC", "PF", "PM", "MQ", "GF", "MF", "GP"]
),
"NL": frozenset(["SX", "BQ", "CW"]),
"NO": frozenset(["BV", "SJ"]),
"NZ": frozenset(["TK"]),
"NL": frozenset(["SX", "BQ", "CW"]),
"PS": frozenset(["GZ"]),
"UK": frozenset(["SH", "FK", "GS", "IO"]),
"US": frozenset(["UM"]),
"FR": frozenset(
["RE", "TF", "BL", "YT", "WF", "NC", "PF", "PM", "MQ", "GF", "MF", "GP"]
),
}
"""country_territories reciprocal"""
territory_to_country = dict(
Expand Down

0 comments on commit 8ef00cd

Please sign in to comment.