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 exactly 0 results are returned
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 street is still returned
68 | osm | class | type | name | geometry |
69 | W1 | highway | residential | Wood Street | 1, 2 |
71 And sending search query "Wood Street"
77 Scenario Outline: Special cased american states will be found
83 | osm | class | type | admin | name | name+ref | geometry |
84 | R1 | boundary | administrative | 4 | <state> | <ref> | (1,2,3,4,1) |
86 | osm | class | type | name | geometry |
87 | N2 | place | town | <city> | 10 |
88 | N3 | place | city | <city> | country:ca |
90 And sending search query "<city>, <state>"
94 When sending search query "<city>, <ref>"
102 | city | state | ref |
103 | Chicago | Illinois | IL |
104 | Auburn | Alabama | AL |
105 | New Orleans | Louisiana | LA |