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
39 | osm | class | type | name | geometry |
40 | N1 | place | town | Ingb | country:ch |
42 And sending search query "Ingb"
46 | osm | display_name |
47 | N1 | Ingb, Switzerland |