use ISO3166-2-lvl<admin_level> instead of typeLabel prefix

This commit is contained in:
Artem Ziablytskyi
2022-04-06 19:24:39 +02:00
committed by Sarah Hoffmann
parent 7899654675
commit 9a56e53d50
6 changed files with 13 additions and 9 deletions

View File

@@ -28,7 +28,7 @@ a single place (for reverse) of the following format:
"city": "London",
"state_district": "Greater London",
"state": "England",
"state-ISO3166-2": "GB-ENG",
"ISO3166-2-lvl4": "GB-ENG",
"postcode": "SW1A 2DU",
"country": "United Kingdom",
"country_code": "gb"
@@ -127,7 +127,7 @@ formats depending on the API call.
</result>
<addressparts>
<state>Bavaria</state>
<state-ISO3166-2>DE-BY</state_code>
<ISO3166-2-lvl4>DE-BY</state_code>
<country>Germany</country>
<country_code>de</country_code>
</addressparts>
@@ -181,7 +181,7 @@ Additional information requested with `addressdetails=1`, `extratags=1` and
<city>London</city>
<state_district>Greater London</state_district>
<state>England</state>
<state-ISO3166-2>GB-ENG</state_code>
<ISO3166-2-lvl4>GB-ENG</state_code>
<postcode>SW1A 2DU</postcode>
<country>United Kingdom</country>
<country_code>gb</country_code>
@@ -282,7 +282,7 @@ with a designation label. Per default the following labels may appear:
* continent
* country, country_code
* region, state, state-ISO3166-2, state_district, county, county-ISO3166-2
* region, state, state_district, county, ISO3166-2-lvl<admin_level>
* municipality, city, town, village
* city_district, district, borough, suburb, subdivision
* hamlet, croft, isolated_dwelling