1 Feature: Searching of simple objects
 
   4     Scenario: Search for place node
 
   6           | osm | class | type    | name+name | geometry   |
 
   7           | N1  | place | village | Foo       | 10.0 -10.0 |
 
  10         Then result 0 contains
 
  11          | object | category | type    | centroid!wkt |
 
  12          | N1     | place    | village | 10 -10   |
 
  15     Scenario: Correct translation of highways under construction
 
  20          | osm | class   | type         | name      | geometry |
 
  21          | W1  | highway | construction | The build | 1,2      |
 
  22          | N1  | amenity | cafe         | Bean      | 9        |
 
  25         Then result 0 contains in field address
 
  29     Scenario: when missing housenumbers in search don't return a POI
 
  31          | osm | class   | type       | name        |
 
  32          | N3  | amenity | restaurant | Wood Street |
 
  34          | osm | class   | type       | name        | housenr |
 
  35          | N20 | amenity | restaurant | Red Way     | 34      |
 
  37         And geocoding "Wood Street 45"
 
  38         Then exactly 0 results are returned
 
  39         When geocoding "Red Way 34"
 
  40         Then exactly 0 results are returned
 
  42      Scenario: when the housenumber is missing the street is still returned
 
  46          | osm | class   | type        | name        | geometry |
 
  47          | W1  | highway | residential | Wood Street | 1, 2     |
 
  49         And geocoding "Wood Street"
 
  50         Then all results contain
 
  54      Scenario Outline: Special cased american states will be found
 
  60          | osm  | class    | type           | admin | name    | name+ref | geometry    |
 
  61          | R1   | boundary | administrative | 4     | <state> | <ref>    | (1,2,3,4,1) |
 
  63          | osm  | class | type  | name   | geometry    |
 
  64          | N2   | place | town  | <city> | 10          |
 
  65          | N3   | place | city  | <city>  | country:ca  |
 
  67         And geocoding "<city>, <state>"
 
  68         Then all results contain
 
  71         When geocoding "<city>, <ref>"
 
  74         Then all results contain
 
  79         | city        | state     | ref |
 
  80         | Chicago     | Illinois  | IL  |
 
  81         | Auburn      | Alabama   | AL  |
 
  82         | New Orleans | Louisiana | LA  |