From fe891625753599876562ba7713fa3a415723ea0f Mon Sep 17 00:00:00 2001 From: rizwan Date: Thu, 10 Aug 2023 17:43:00 +0200 Subject: [PATCH] fix: gives bbox of Heidelberg region to restrict search result to this region only #386 --- src/support/map-data-services/ors-params-parser.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/support/map-data-services/ors-params-parser.js b/src/support/map-data-services/ors-params-parser.js index 8ceb57216..424099024 100644 --- a/src/support/map-data-services/ors-params-parser.js +++ b/src/support/map-data-services/ors-params-parser.js @@ -19,7 +19,19 @@ const orsParamsParser = { const args = { text: placeName, size: 8, - focus_point: [store.getters.mapCenter.lat, store.getters.mapCenter.lng] + focus_point: [store.getters.mapCenter.lat, store.getters.mapCenter.lng], + // as HEAL project is only for Heidelberg region, we restrict the place search to just this region + // heal: heidelberg bbox but long in height + boundary_bbox : [ + [ + 49.32624080869595, + 8.556461334228517 + ], + [ + 49.552723238903546, + 8.80434036254883 + ] + ] } // If is set to restrict the search to current mapBounds, // then apply the restriction