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"
80 Scenario Outline: Special cased american states will be found
86 | osm | class | type | admin | name | name+ref | geometry |
87 | R1 | boundary | administrative | 4 | <state> | <ref> | (1,2,3,4,1) |
89 | osm | class | type | name | geometry |
90 | N2 | place | town | <city> | 10 |
91 | N3 | place | city | <city> | country:ca |
93 And sending search query "<city>, <state>"
97 When sending search query "<city>, <ref>"
105 | city | state | ref |
106 | Chicago | Illinois | IL |
107 | Auburn | Alabama | AL |
108 | New Orleans | Louisiana | LA |