From 3108e35a5bae900c70bb8a3d6be49aefa2830dd2 Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Thu, 17 Nov 2016 13:13:09 +0100 Subject: [PATCH] =?UTF-8?q?OSM-Tag=20"village"=20zu=20den=20relevanten=20T?= =?UTF-8?q?ags=20f=C3=BCr=20die=20restriktive=20Suche=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/SearchController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index f33b60c..a05cbd1 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -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; } -- GitLab