mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
use ISO3166-2-lvl<admin_level> instead of typeLabel prefix
This commit is contained in:
committed by
Sarah Hoffmann
parent
7899654675
commit
9a56e53d50
@@ -34,6 +34,7 @@ Feature: Search queries
|
||||
| postcode | 9495 |
|
||||
| country | Liechtenstein |
|
||||
| country_code | li |
|
||||
| ISO3166-2-lvl12 | LI-09 |
|
||||
|
||||
Examples:
|
||||
| format |
|
||||
|
||||
@@ -15,6 +15,7 @@ Feature: Search queries
|
||||
| postcode | 9497 |
|
||||
| country | Liechtenstein |
|
||||
| country_code | li |
|
||||
| ISO3166-2-lvl10 | LI-10 |
|
||||
|
||||
Scenario: House number interpolation
|
||||
When sending json search query "Grosssteg 1023, Triesenberg" with address
|
||||
@@ -41,6 +42,7 @@ Feature: Search queries
|
||||
| town | Triesenberg |
|
||||
| country | Liechtenstein |
|
||||
| country_code | li |
|
||||
| ISO3166-2-lvl10 | LI-10 |
|
||||
|
||||
Scenario Outline: Housenumber 0 can be found
|
||||
When sending <format> search query "Gnalpstrasse 0" with address
|
||||
|
||||
@@ -86,7 +86,8 @@ class AddressDetailsTest extends \PHPUnit\Framework\TestCase
|
||||
'city' => 'London',
|
||||
'state_district' => 'Greater London',
|
||||
'state' => 'England',
|
||||
'state-ISO3166-2' => 'GB-ENG',
|
||||
'ISO3166-2-lvl4' => 'GB-ENG',
|
||||
'ISO3166-2-lvl6' => 'GB-LND',
|
||||
'postcode' => 'SW1A 2AA',
|
||||
'country' => 'United Kingdom',
|
||||
'country_code' => 'gb'
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
{"place_id":193774423,
|
||||
"osm_type":"R",
|
||||
"osm_id":65606,
|
||||
"name":{"name": "London", "name:be": "Лондан", "name:ca": "Londres", "name:el": "Λονδίνο", "name:en": "London", "name:eo": "Londono", "name:es": "Londres", "name:fa": "لندن", "name:fi": "Lontoo", "name:fr": "Londres", "name:fy": "Londen", "name:gl": "Londres", "name:hi": "लंदन", "name:lt": "Londonas", "name:nl": "Londen", "name:pl": "Londyn", "name:pt": "Londres", "name:ru": "Лондон", "name:uk": "Лондон", "name:vi": "Luân Đôn", "name:zh": "伦敦", "int_name": "London", "name:szl": "Lůndůn", "name:tzl": "Londra", "name:be-tarask": "Лёндан"},
|
||||
"name":{"name": "London", "ISO3166-2": "GB-LND", "name:be": "Лондан", "name:ca": "Londres", "name:el": "Λονδίνο", "name:en": "London", "name:eo": "Londono", "name:es": "Londres", "name:fa": "لندن", "name:fi": "Lontoo", "name:fr": "Londres", "name:fy": "Londen", "name:gl": "Londres", "name:hi": "लंदन", "name:lt": "Londonas", "name:nl": "Londen", "name:pl": "Londyn", "name:pt": "Londres", "name:ru": "Лондон", "name:uk": "Лондон", "name:vi": "Luân Đôn", "name:zh": "伦敦", "int_name": "London", "name:szl": "Lůndůn", "name:tzl": "Londra", "name:be-tarask": "Лёндан"},
|
||||
"class":"place",
|
||||
"type":"city",
|
||||
"admin_level":6,
|
||||
|
||||
Reference in New Issue
Block a user