Merge pull request #3995 from Itz-Agasta/exp

Add Language-aware country penalty in forward geocoding
This commit is contained in:
Sarah Hoffmann
2026-03-04 17:24:46 +01:00
committed by GitHub
4 changed files with 46 additions and 7 deletions

View File

@@ -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 |