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` ), }, {