2 Feature: Import and search of names
3 Tests all naming related issues: normalisation,
4 abbreviations, internationalisation, etc.
6 Scenario: non-latin scripts can be found
8 | osm | class | type | name |
9 | N1 | place | locality | Речицкий район |
10 | N2 | place | locality | Refugio de montaña |
11 | N3 | place | locality | 高槻市|
12 | N4 | place | locality | الدوحة |
14 When sending search query "Речицкий район"
18 When sending search query "Refugio de montaña"
22 When sending search query "高槻市"
26 When sending search query "الدوحة"
31 Scenario: Case-insensitivity of search
33 | osm | class | type | name |
34 | N1 | place | locality | FooBar |
37 | object | class | type | name+name |
38 | N1 | place | locality | FooBar |
39 When sending search query "FooBar"
43 When sending search query "foobar"
47 When sending search query "fOObar"
51 When sending search query "FOOBAR"
56 Scenario: Multiple spaces in name
58 | osm | class | type | name |
59 | N1 | place | locality | one two three |
61 When sending search query "one two three"
65 When sending search query "one two three"
69 When sending search query "one two three"
73 When sending search query " one two three"
78 Scenario: Special characters in name
80 | osm | class | type | name+name:de |
81 | N1 | place | locality | Jim-Knopf-Straße |
82 | N2 | place | locality | Smith/Weston |
83 | N3 | place | locality | space mountain |
84 | N4 | place | locality | space |
85 | N5 | place | locality | mountain |
87 When sending search query "Jim-Knopf-Str"
91 When sending search query "Jim Knopf-Str"
95 When sending search query "Jim Knopf Str"
99 When sending search query "Jim/Knopf-Str"
103 When sending search query "Jim-Knopfstr"
107 When sending search query "Smith/Weston"
111 When sending search query "Smith Weston"
115 When sending search query "Smith-Weston"
119 When sending search query "space mountain"
123 When sending search query "space-mountain"
127 When sending search query "space/mountain"
131 When sending search query "space\mountain"
135 When sending search query "space(mountain)"
140 Scenario: Landuse with name are found
145 | osm | class | type | name | geometry |
146 | R1 | natural | meadow | landuse1 | (1,2,3,1) |
147 | R2 | landuse | industrial | landuse2 | (2,3,1,2) |
149 When sending search query "landuse1"
153 When sending search query "landuse2"
158 Scenario: Postcode boundaries without ref
159 Given the grid with origin FR
163 | osm | class | type | postcode | geometry |
164 | R1 | boundary | postal_code | 123-45 | (1,2,3,1) |
166 When sending search query "123-45"
171 Scenario Outline: Housenumbers with special characters are found
176 | osm | class | type | name | geometry |
177 | W1 | highway | primary | Main St | 1,2 |
179 | osm | class | type | housenr | geometry |
180 | N1 | building | yes | <nr> | 9 |
182 And sending search query "Main St <nr>"
184 | osm | display_name |
185 | N1 | <nr>, Main St |
199 Scenario Outline: Housenumbers in lists are found
204 | osm | class | type | name | geometry |
205 | W1 | highway | primary | Main St | 1,2 |
207 | osm | class | type | housenr | geometry |
208 | N1 | building | yes | <nr-list> | 9 |
210 And sending search query "Main St <nr>"
212 | ID | osm | display_name |
213 | 0 | N1 | <nr-list>, Main St |