}
            }
        }
    }
    protected function _getMod($swY, $neY)
    {
        $maxMod = 16;
        $size = $neY - $swY;
        $f = $size * 100 / 180;
        $mod = round($maxMod * $f / 100);
        if ($mod < 1) {
            $mod = 1;
        }
        return $mod;
    }
}
// -----------------------------------------------------------------------------
// Process params
// -----------------------------------------------------------------------------
$bbox = explode(',', $_REQUEST['bbox']);
if (count($bbox) !== 4) {
    return;
}
$swX = round($bbox[0] * 10000) / 10000;
$swY = round($bbox[1] * 10000) / 10000;
$neX = round($bbox[2] * 10000) / 10000;
$neY = round($bbox[3] * 10000) / 10000;
$disaster = new Disaster();
$disaster->fetchData();
$disaster->printByBBox($swX, $swY, $neX, $neY);