Skip to content
Snippets Groups Projects
Commit 3108e35a authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

OSM-Tag "village" zu den relevanten Tags für die restriktive Suche hinzugefügt

parent 3bf04b29
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ public function boundingBoxSearch(Request $request, $search, $latMin, $lonMin, $
$match = false;
foreach ($searchWords as $word) {
foreach ($result["address"] as $key => $value) {
if (($key === "hamlet" || $key === "suburb" || $key === "subdistrict" || $key === "district" || $key === "province" || $key === "state" || $key === "city" || $key === "place" || $key === "street" || $key === "country" || $key === "housename") && stripos($value, $word) !== false) {
if (($key === "hamlet" || $key === "village" || $key === "suburb" || $key === "subdistrict" || $key === "district" || $key === "province" || $key === "state" || $key === "city" || $key === "place" || $key === "street" || $key === "country" || $key === "housename") && stripos($value, $word) !== false) {
$match = true;
break 2;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment