Browse Source

Return single POI if osmid filter set

master
Skylar Ittner 2 years ago
parent
commit
610e88fdaf
  1. 7
      index.php

7
index.php

@ -126,7 +126,12 @@ $query = ob_get_contents();
ob_clean();
$results = $database->query($query)->fetchAll();
$geojson = getgeojson($results);
// If we're looking for a specific location by OSM ID
if (!empty($where["osmid"])) {
$geojson = getgeojson($results[0]);
} else {
$geojson = getgeojson($results);
}
if ($SETTINGS["debug"]) {
$geojson["query"] = $query;

Loading…
Cancel
Save