[osm] Adding country_region tag to address formatter

This commit is contained in:
Al
2016-07-21 23:38:37 -04:00
parent bc2a0f0926
commit 06541f5911

View File

@@ -72,6 +72,7 @@ class AddressFormatter(object):
STATE = 'state'
STATE_DISTRICT = 'state_district'
POSTCODE = 'postcode'
COUNTRY_REGION = 'country_region'
COUNTRY = 'country'
component_order = {k: i for i, k in enumerate([
@@ -97,6 +98,7 @@ class AddressFormatter(object):
STATE,
STATE_DISTRICT,
POSTCODE,
COUNTRY_REGION,
COUNTRY,
])}
@@ -108,6 +110,7 @@ class AddressFormatter(object):
ISLAND,
STATE_DISTRICT,
STATE,
COUNTRY_REGION,
COUNTRY,
]