"province" : [8, 0],
"region" : [18, 0],
"county" : 12,
+ "municipality" : [17, 14],
"city" : 16,
"island" : [17, 0],
"town" : [18, 16],
"village" : [19, 16],
- "municipality" : [19, 16],
"district" : [19, 16],
"borough" : [19, 18],
"hamlet" : 20,
{ "countries" : [ "de" ],
"tags" : {
"place" : {
+ "region" : [10, 0],
"county" : [12, 0]
},
"boundary" : {
"administrative7" : [14, 0]
}
}
+},
+{ "countries" : ["se", "no"],
+ "tags" : {
+ "place" : {
+ },
+ "boundary" : {
+ "administrative3" : 8,
+ "administrative4" : 12
+ }
+ }
}
]
$this->assertEquals('Administrative', ClassTypes\getBoundaryLabel(18, null));
$this->assertEquals('None', ClassTypes\getBoundaryLabel(18, null, 'None'));
$this->assertEquals('State', ClassTypes\getBoundaryLabel(4, 'de', 'None'));
+ $this->assertEquals('County', ClassTypes\getBoundaryLabel(4, 'se', 'None'));
+ $this->assertEquals('Municipality', ClassTypes\getBoundaryLabel(7, 'se', 'None'));
}
public function testGetDefRadius()