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
28 | osm | class | type | admin | name+name:xy | country | geometry |
29 | R1 | boundary | administrative | 2 | Loudou | de | (1,2,3,4,1) |
31 | osm | class | type | name | geometry |
32 | N1 | place | town | Wenig | country:de |
34 When sending search query "Wenig"
38 | osm | display_name |
39 | N1 | Wenig, Germany |
40 Scenario: Pre-defined country names are used
41 Given the grid with origin CH
44 | osm | class | type | name | geometry |
45 | N1 | place | town | Ingb | 1 |
47 And sending search query "Ingb"
51 | osm | display_name |
52 | N1 | Ingb, Switzerland |