mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-07 18:44:07 +00:00
Merge pull request #3995 from Itz-Agasta/exp
Add Language-aware country penalty in forward geocoding
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