]> git.openstreetmap.org Git - nominatim.git/commitdiff
add test for preference of full matches on unlisted places
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 19 Apr 2024 15:54:52 +0000 (17:54 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 2 May 2024 09:47:35 +0000 (11:47 +0200)
test/bdd/db/import/addressing.feature

index 8cc74eadd9f2f721b52a01ebd512ced82fb30a60..e7c912074d88ae0ce5a2433035c79d51fdf5b3cb 100644 (file)
@@ -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  |