Skip to content

Map AT abbreviations to Osmose equivalent #2510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions osmose_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1818,15 +1818,15 @@ class gen(default_country):

at_state = gen_country('europe', 'austria', download_repo=OSMFR, language='de', proj=32633)

at_state("niederosterreich", 77189, "AT-3")
at_state("burgenland", 76909, "AT-1")
at_state("karnten", 52345, "AT-2")
at_state("oberosterreich", 102303, "AT-4")
at_state("salzburg", 86539, "AT-5")
at_state("steiermark", 35183, "AT-6")
at_state("tirol", 52343, "AT-7")
at_state("wien", 109166, "AT-9")
at_state("vorarlberg", 74942, "AT-8")
at_state("niederosterreich", 77189, "AT-NOE")
at_state("burgenland", 76909, "AT-B")
at_state("karnten", 52345, "AT-K")
at_state("oberosterreich", 102303, "AT-OOE")
at_state("salzburg", 86539, "AT-S")
at_state("steiermark", 35183, "AT-ST")
at_state("tirol", 52343, "AT-T")
at_state("wien", 109166, "AT-W")
at_state("vorarlberg", 74942, "AT-V")

#########################################################################

Expand Down
2 changes: 0 additions & 2 deletions plugins/TagFix_Maxspeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ class TagFix_Maxspeed(Plugin):
maxspeed_table = {
'at:rural': ['100'],
'at:trunk': ['100'],
'at:urban40': ['40'],
'at:urban30': ['30'],
'be-bru:rural': ['70'],
'be-bru:urban': ['30'],
'be:motorway': ['120'],
Expand Down
10 changes: 10 additions & 0 deletions plugins/modules/name_suggestion_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ def download_nsi():

# Countries in NSI with different ids or spanning multiple Osmose extracts
_nsi_to_osmose_map = {
# Austria
"at-3": ["at-noe"], # Niederösterreich
"at-1": ["at-b"], # Burgenland
"at-2": ["at-k"], # Kärnten
"at-4": ["at-ooe"], # Oberösterreich
"at-5": ["at-s"], # Salzburg
"at-6": ["at-st"], # Steiermark
"at-7": ["at-t"], # Tirol
"at-9": ["at-w"], # Wien
"at-8": ["at-v"], # Vorarlberg
# China
"hk": ["cn-91"], # Hong Kong
"mo": ["cn-92"], # Macau
Expand Down
Loading