X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/df0142678a10eaf51f2acac40bcff6350211b305..HEAD:/test/bdd/db/import/rank_computation.feature diff --git a/test/bdd/db/import/rank_computation.feature b/test/bdd/db/import/rank_computation.feature index 1d4e2b82..0fce3e71 100644 --- a/test/bdd/db/import/rank_computation.feature +++ b/test/bdd/db/import/rank_computation.feature @@ -255,3 +255,46 @@ Feature: Rank assignment | W1 | R10 | True | 18 | | W1 | R2 | True | 16 | | W1 | N9 | False | 18 | + + + Scenario: POI nodes with place tags + Given the places + | osm | class | type | name | extratags | + | N23 | amenity | playground | AB | "place": "city" | + | N23 | place | city | AB | "amenity": "playground" | + When importing + Then placex contains exactly + | object | rank_search | rank_address | + | N23:amenity | 30 | 30 | + | N23:place | 16 | 16 | + + Scenario: Address rank 25 is only used for addr:place + Given the grid + | 10 | 33 | 34 | 11 | + Given the places + | osm | class | type | name | + | N10 | place | village | vil | + | N11 | place | farm | farm | + And the places + | osm | class | type | name | geometry | + | W1 | highway | residential | RD | 33,11 | + And the places + | osm | class | type | name | addr+farm | geometry | + | W2 | highway | residential | RD2 | farm | 34,11 | + And the places + | osm | class | type | housenr | + | N33 | place | house | 23 | + And the places + | osm | class | type | housenr | addr+place | + | N34 | place | house | 23 | farm | + When importing + Then placex contains + | object | parent_place_id | + | N11 | N10 | + | N33 | W1 | + | N34 | N11 | + And place_addressline contains + | object | address | + | W1 | N10 | + | W2 | N10 | + | W2 | N11 |