places: remove invalid levels

pull/397/head
Varun Patil 2023-02-08 15:09:54 -08:00
parent a6a0de548d
commit 0656368975
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}