places: remove invalid levels
parent
a6a0de548d
commit
0656368975
|
@ -194,8 +194,9 @@ class PlacesSetup extends Command
|
|||
$boundaries = $data['geometry'];
|
||||
|
||||
// Skip some places
|
||||
if ($adminLevel >= 10) {
|
||||
// These are too specific, e.g. "Community Board"
|
||||
if ($adminLevel <= 1 || $adminLevel >= 10) {
|
||||
// <=1: These are too general, e.g. "Earth"? or invalid
|
||||
// >=10: These are too specific, e.g. "Community Board"
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue