2 Feature: Searching of simple objects
5 Scenario: Search for place node
7 | osm | class | type | name+name | geometry |
8 | N1 | place | village | Foo | 10.0 -10.0 |
10 And sending search query "Foo"
12 | ID | osm | category | type | centroid |
13 | 0 | N1 | place | village | 10 -10 |
15 Scenario: Updating postcode in postcode boundaries without ref
17 | osm | class | type | postcode | geometry |
18 | R1 | boundary | postal_code | 12345 | poly-area:1.0 |
20 And sending search query "12345"
25 | osm | class | type | postcode | geometry |
26 | R1 | boundary | postal_code | 54321 | poly-area:1.0 |
27 And sending search query "12345"
28 Then result 0 has not attributes osm_type
29 When sending search query "54321"
35 Scenario: Correct translation of highways under construction
40 | osm | class | type | name | geometry |
41 | W1 | highway | construction | The build | 1,2 |
42 | N1 | amenity | cafe | Bean | 9 |
44 And sending json search query "Bean" with address
45 Then result addresses contain
49 Scenario: when missing housenumbers in search don't return a POI
51 | osm | class | type | name |
52 | N3 | amenity | restaurant | Wood Street |
54 | osm | class | type | name | housenr |
55 | N20 | amenity | restaurant | Red Way | 34 |
57 And sending search query "Wood Street 45"
58 Then exactly 0 results are returned
59 When sending search query "Red Way 34"
64 Scenario: when the housenumber is missing the stret is still returned
68 | osm | class | type | name | geometry |
69 | W1 | highway | residential | Wood Street | 1, 2 |
71 And sending search query "Wood Street"