2 Feature: Creation of search terms
3 Tests that search_name table is filled correctly
5 Scenario: POIs without a name have no search entry
6 Given the scene roads-with-pois
8 | osm_id | class | type | geometry
9 | 1 | place | house | :p-N1
11 | osm_id | class | type | geometry
12 | 1 | highway | residential | :w-north
14 Then table search_name has no entry for N1
17 Scenario: Named POIs inherit address from parent
18 Given the scene roads-with-pois
20 | osm_id | class | type | name | geometry
21 | 1 | place | house | foo | :p-N1
23 | osm_id | class | type | name | geometry
24 | 1 | highway | residential | the road | :w-north
26 Then search_name table contains
27 | place_id | name_vector | nameaddress_vector
30 Scenario: Roads take over the postcode from attached houses
31 Given the scene roads-with-pois
33 | osm_id | class | type | housenumber | postcode | street | geometry
34 | 1 | place | house | 1 | 12345 | North St |:p-S1
36 | osm_id | class | type | name | geometry
37 | 1 | highway | residential | North St | :w-north
39 Then search_name table contains
40 | place_id | nameaddress_vector