mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-07 02:24:08 +00:00
Adds test for locale-sensitive country name matching
Introduces a scenario to verify that a country's alternate-language name does not dominate search results when the requested locale differs. Ensures correct result selection for locale-aware geocoding. Relates to #3210
This commit is contained in:
@@ -80,3 +80,23 @@ Feature: Searching of simple objects
|
||||
| Chicago | Illinois | IL |
|
||||
| Auburn | Alabama | AL |
|
||||
| New Orleans | Louisiana | LA |
|
||||
|
||||
# github #3210
|
||||
Scenario: Country with alternate-language name does not dominate when locale differs
|
||||
Given the 1.0 grid with origin DE
|
||||
| 1 | | 2 |
|
||||
| | 10 | |
|
||||
| 4 | | 3 |
|
||||
Given the places
|
||||
| osm | class | type | admin | name+name | name+name:fi | name+name:de | country | geometry |
|
||||
| R1 | boundary | administrative | 2 | Turgei | Turgi | Testland | de | (1,2,3,4,1) |
|
||||
Given the places
|
||||
| osm | class | type | name+name | geometry |
|
||||
| N10 | place | village | Turgi | 10 |
|
||||
When importing
|
||||
And geocoding "Turgi"
|
||||
| accept-language |
|
||||
| de |
|
||||
Then result 0 contains
|
||||
| object |
|
||||
| N10 |
|
||||
|
||||
Reference in New Issue
Block a user