2 Feature: Country handling
3 Tests for import and use of country information
5 Scenario: Country names from OSM country relations are added
7 | osm | class | type | admin | name+name:xy | country | geometry |
8 | R1 | boundary | administrative | 2 | Loudou | de | (9 52, 9 53, 10 52, 9 52) |
10 | osm | class | type | name | geometry |
11 | N1 | place | town | Wenig | country:de |
13 When sending search query "Wenig, Loudou"
15 | osm | display_name |
16 | N1 | Wenig, Deutschland |
17 When sending search query "Wenig"
21 | osm | display_name |
22 | N1 | Wenig, Loudou |
23 Scenario: OSM country relations outside expected boundaries are ignored
25 | osm | class | type | admin | name+name:xy | country | geometry |
26 | R1 | boundary | administrative | 2 | Loudou | de | poly-area:0.1 |
28 | osm | class | type | name | geometry |
29 | N1 | place | town | Wenig | country:de |
31 When sending search query "Wenig"
35 | osm | display_name |
36 | N1 | Wenig, Germany |
37 Scenario: Pre-defined country names are used
38 Given the grid with origin CH
41 | osm | class | type | name | geometry |
42 | N1 | place | town | Ingb | 1 |
44 And sending search query "Ingb"
48 | osm | display_name |
49 | N1 | Ingb, Switzerland |