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
20 | osm | class | type | postcode | geometry |
21 | R1 | boundary | postal_code | 12345 | (1,2,3,4,1) |
23 And sending search query "12345"
28 | osm | class | type | postcode | geometry |
29 | R1 | boundary | postal_code | 54321 | (1,2,3,4,1) |
30 And sending search query "12345"
31 Then exactly 0 results are returned
32 When sending search query "54321"
38 Scenario: Correct translation of highways under construction
43 | osm | class | type | name | geometry |
44 | W1 | highway | construction | The build | 1,2 |
45 | N1 | amenity | cafe | Bean | 9 |
47 And sending json search query "Bean" with address
48 Then result addresses contain
52 Scenario: when missing housenumbers in search don't return a POI
54 | osm | class | type | name |
55 | N3 | amenity | restaurant | Wood Street |
57 | osm | class | type | name | housenr |
58 | N20 | amenity | restaurant | Red Way | 34 |
60 And sending search query "Wood Street 45"
61 Then exactly 0 results are returned
62 When sending search query "Red Way 34"
67 Scenario: when the housenumber is missing the street is still returned
71 | osm | class | type | name | geometry |
72 | W1 | highway | residential | Wood Street | 1, 2 |
74 And sending search query "Wood Street"
81 Scenario Outline: Special cased american states will be found
87 | osm | class | type | admin | name | name+ref | geometry |
88 | R1 | boundary | administrative | 4 | <state> | <ref> | (1,2,3,4,1) |
90 | osm | class | type | name | geometry |
91 | N2 | place | town | <city> | 10 |
92 | N3 | place | city | <city> | country:ca |
94 And sending search query "<city>, <state>"
98 When sending search query "<city>, <ref>"
106 | city | state | ref |
107 | Chicago | Illinois | IL |
108 | Auburn | Alabama | AL |
109 | New Orleans | Louisiana | LA |