X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/fced1172c4a06d1b419ca3629cb6fbee01b1b280..e92e03e2e6b892e6dc7a931fe0e70de9315bd302:/test/bdd/db/import/addressing.feature diff --git a/test/bdd/db/import/addressing.feature b/test/bdd/db/import/addressing.feature index e72ff448..e7c91207 100644 --- a/test/bdd/db/import/addressing.feature +++ b/test/bdd/db/import/addressing.feature @@ -56,7 +56,7 @@ Feature: Address computation | N1 | R1 | True | | N1 | R2 | True | - Scenario: with boundaries of same rank the one with the closer centroid is prefered + Scenario: with boundaries of same rank the one with the closer centroid is preferred Given the grid | 1 | | | 3 | | 5 | | | 9 | | | | | @@ -542,3 +542,24 @@ Feature: Address computation | object | address | | W1 | R2 | + Scenario: Full name is prefered for unlisted addr:place tags + Given the grid + | | 1 | 2 | | + | 8 | | | 9 | + And the places + | osm | class | type | name | geometry | + | W10 | place | city | Away | (8,1,2,9,8) | + And the places + | osm | class | type | name | addr+city | geometry | + | W1 | highway | residential | Royal Terrace | Gardens | 8,9 | + And the places + | osm | class | type | housenr | addr+place | geometry | extra+foo | + | N1 | place | house | 1 | Royal Terrace Gardens | 1 | bar | + And the places + | osm | class | type | housenr | addr+street | geometry | + | N2 | place | house | 2 | Royal Terrace | 2 | + When importing + When sending search query "1, Royal Terrace Gardens" + Then results contain + | ID | osm | + | 0 | N1 |