[osm] Adding country_region tag to address formatter
This commit is contained in:
@@ -72,6 +72,7 @@ class AddressFormatter(object):
|
|||||||
STATE = 'state'
|
STATE = 'state'
|
||||||
STATE_DISTRICT = 'state_district'
|
STATE_DISTRICT = 'state_district'
|
||||||
POSTCODE = 'postcode'
|
POSTCODE = 'postcode'
|
||||||
|
COUNTRY_REGION = 'country_region'
|
||||||
COUNTRY = 'country'
|
COUNTRY = 'country'
|
||||||
|
|
||||||
component_order = {k: i for i, k in enumerate([
|
component_order = {k: i for i, k in enumerate([
|
||||||
@@ -97,6 +98,7 @@ class AddressFormatter(object):
|
|||||||
STATE,
|
STATE,
|
||||||
STATE_DISTRICT,
|
STATE_DISTRICT,
|
||||||
POSTCODE,
|
POSTCODE,
|
||||||
|
COUNTRY_REGION,
|
||||||
COUNTRY,
|
COUNTRY,
|
||||||
])}
|
])}
|
||||||
|
|
||||||
@@ -108,6 +110,7 @@ class AddressFormatter(object):
|
|||||||
ISLAND,
|
ISLAND,
|
||||||
STATE_DISTRICT,
|
STATE_DISTRICT,
|
||||||
STATE,
|
STATE,
|
||||||
|
COUNTRY_REGION,
|
||||||
COUNTRY,
|
COUNTRY,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user