Skip to content

Commit

Permalink
Filter out items without a name tag
Browse files Browse the repository at this point in the history
Objects should always have at least a name tag with the local name.

There are currently lots of objects with only name:en in Addis Ababa - this needs to be corrected.
  • Loading branch information
amenk committed Jul 22, 2024
1 parent 1bc2e83 commit 17a7e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/Overpass.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function fetchOsmOverview(\App\Models\PoiType $type, Area $area)
$value = $type->tags[0]['value'];

$innerQuery = sprintf('area(%d);', $area->idInfo->getAreaId());
$innerQuery .= sprintf('nwr["%s"="%s"](area);', $key, $value);
$innerQuery .= sprintf('nwr["%s"="%s"][name](area);', $key, $value);

$result = [];
$data = $this->cachedRunQuery($innerQuery);
Expand Down

0 comments on commit 17a7e75

Please sign in to comment.