From 27fa40b2bc149ec646131f777df326b615179142 Mon Sep 17 00:00:00 2001 From: analuizaff Date: Fri, 8 Oct 2021 18:25:03 -0300 Subject: [PATCH] adding time filtering to '/formsanswers' endpoint --- src/app/hooks/useFiltering.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/hooks/useFiltering.js b/src/app/hooks/useFiltering.js index 6ece3e5..087a68e 100644 --- a/src/app/hooks/useFiltering.js +++ b/src/app/hooks/useFiltering.js @@ -11,14 +11,14 @@ function useFiltering(location) { name: "floodZones", socketUrl: new WebSocket( "wss://waterproofing.geog.uni-heidelberg.de/wss/hot/formsanswers?" + - `type=FLOODZONES_FORM&lat=${location.lat}&lon=${location.long}&buffer=5000&limit=5` + `type=FLOODZONES_FORM&time=${finalDate}/${initialDate}&lat=${location.lat}&lon=${location.long}&buffer=5000&limit=5` ), }, { name: "rain", socketUrl: new WebSocket( "wss://waterproofing.geog.uni-heidelberg.de/wss/hot/formsanswers?" + - `type=RAIN_FORM&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=30` + `type=RAIN_FORM&time=${finalDate}/${initialDate}&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=30` ), }, {