Skip to content

Commit

Permalink
Merge pull request #17 from OpenPlaceGuide/name
Browse files Browse the repository at this point in the history
Filter out items without a name tag
  • Loading branch information
amenk authored Jul 23, 2024
2 parents c3c12ab + 17a7e75 commit 6e2c033
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 6e2c033

Please sign in to comment.