]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/db/import/search_name.feature
Merge pull request #669 from lonvia/address-part-on-intersect
[nominatim.git] / test / bdd / db / import / search_name.feature
1 @DB
2 Feature: Creation of search terms
3     Tests that search_name table is filled correctly
4
5     Scenario: POIs without a name have no search entry
6         Given the scene roads-with-pois
7         And the places
8          | osm | class   | type        | geometry |
9          | N1  | place   | house       | :p-N1 |
10         And the named places
11          | osm | class   | type        | geometry |
12          | W1  | highway | residential | :w-north |
13         When importing
14         Then search_name has no entry for N1
15
16     Scenario: Named POIs inherit address from parent
17         Given the scene roads-with-pois
18         And the places
19          | osm | class   | type        | name     | geometry |
20          | N1  | place   | house       | foo      | :p-N1 |
21          | W1  | highway | residential | the road | :w-north |
22         When importing
23         Then search_name contains
24          | object | name_vector | nameaddress_vector |
25          | N1     | foo         | the road |
26
27     Scenario: Roads take over the postcode from attached houses
28         Given the scene roads-with-pois
29         And the places
30          | osm | class | type  | housenr | postcode | street   | geometry |
31          | N1  | place | house | 1       | 12345    | North St | :p-S1 |
32         And the places
33          | osm | class   | type        | name     | geometry |
34          | W1  | highway | residential | North St | :w-north |
35         When importing
36         Then search_name contains
37          | object | nameaddress_vector |
38          | W1     | 12345 |
39