1 Feature: Import and search of names
 
   2     Tests all naming related issues: normalisation,
 
   3     abbreviations, internationalisation, etc.
 
   5     Scenario: non-latin scripts can be found
 
   7           | osm | class | type      | name |
 
   8           | N1  | place | locality  | Речицкий район |
 
   9           | N2  | place | locality  | Refugio de montaña |
 
  10           | N3  | place | locality  | 高槻市|
 
  11           | N4  | place | locality  | الدوحة |
 
  13         When geocoding "Речицкий район"
 
  14         Then result 0 contains
 
  17         When geocoding "Refugio de montaña"
 
  18         Then result 0 contains
 
  22         Then result 0 contains
 
  25         When geocoding "الدوحة"
 
  26         Then result 0 contains
 
  30     Scenario: Case-insensitivity of search
 
  32           | osm | class | type      | name |
 
  33           | N1  | place | locality  | FooBar |
 
  36           | object | class  | type     | name+name |
 
  37           | N1     | place  | locality | FooBar |
 
  38         When geocoding "FooBar"
 
  39         Then result 0 contains
 
  42         When geocoding "foobar"
 
  43         Then result 0 contains
 
  46         When geocoding "fOObar"
 
  47         Then result 0 contains
 
  50         When geocoding "FOOBAR"
 
  51         Then result 0 contains
 
  55     Scenario: Multiple spaces in name
 
  57           | osm | class | type      | name |
 
  58           | N1  | place | locality  | one two  three |
 
  60         When geocoding "one two three"
 
  61         Then result 0 contains
 
  64         When geocoding "one   two three"
 
  65         Then result 0 contains
 
  68         When geocoding "one two  three"
 
  69         Then result 0 contains
 
  72         When geocoding "    one two three"
 
  73         Then result 0 contains
 
  77     Scenario: Special characters in name
 
  79           | osm | class | type      | name+name:de |
 
  80           | N1  | place | locality  | Jim-Knopf-Straße |
 
  81           | N2  | place | locality  | Smith/Weston |
 
  82           | N3  | place | locality  | space mountain |
 
  83           | N4  | place | locality  | space |
 
  84           | N5  | place | locality  | mountain |
 
  86         When geocoding "Jim-Knopf-Str"
 
  87         Then result 0 contains
 
  90         When geocoding "Jim Knopf-Str"
 
  91         Then result 0 contains
 
  94         When geocoding "Jim Knopf Str"
 
  95         Then result 0 contains
 
  98         When geocoding "Jim/Knopf-Str"
 
  99         Then result 0 contains
 
 102         When geocoding "Jim-Knopfstr"
 
 103         Then result 0 contains
 
 106         When geocoding "Smith/Weston"
 
 107         Then result 0 contains
 
 110         When geocoding "Smith Weston"
 
 111         Then result 0 contains
 
 114         When geocoding "Smith-Weston"
 
 115         Then result 0 contains
 
 118         When geocoding "space mountain"
 
 119         Then result 0 contains
 
 122         When geocoding "space-mountain"
 
 123         Then result 0 contains
 
 126         When geocoding "space/mountain"
 
 127         Then result 0 contains
 
 130         When geocoding "space\mountain"
 
 131         Then result 0 contains
 
 134         When geocoding "space(mountain)"
 
 135         Then result 0 contains
 
 139     Scenario: Landuse with name are found
 
 144           | osm | class    | type        | name     | geometry |
 
 145           | R1  | natural  | meadow      | landuse1 | (1,2,3,1) |
 
 146           | R2  | landuse  | industrial  | landuse2 | (2,3,1,2) |
 
 148         When geocoding "landuse1"
 
 149         Then result 0 contains
 
 152         When geocoding "landuse2"
 
 153         Then result 0 contains
 
 157     Scenario: Postcode boundaries without ref
 
 158         Given the grid with origin FR
 
 162           | osm | class    | type        | postcode  | geometry |
 
 163           | R1  | boundary | postal_code | 123-45    | (1,2,3,1) |
 
 165         When geocoding "123-45"
 
 166         Then result 0 contains
 
 170     Scenario Outline: Housenumbers with special characters are found
 
 175             | osm | class   | type    | name    | geometry |
 
 176             | W1  | highway | primary | Main St | 1,2      |
 
 178             | osm | class    | type | housenr | geometry |
 
 179             | N1  | building | yes  | <nr>    | 9        |
 
 181         And geocoding "Main St <nr>"
 
 182         Then result 0 contains
 
 183          | object | display_name |
 
 184          | N1     | <nr>, Main St |
 
 198     Scenario Outline: Housenumbers in lists are found
 
 203             | osm | class   | type    | name    | geometry |
 
 204             | W1  | highway | primary | Main St | 1,2      |
 
 206             | osm | class    | type | housenr   | geometry |
 
 207             | N1  | building | yes  | <nr-list> | 9        |
 
 209         And geocoding "Main St <nr>"
 
 210         Then result 0 contains
 
 211          | object | display_name |
 
 212          | N1     | <nr-list>, Main St |