|
@ -11,6 +11,8 @@ function useFiltering(location) { |
|
|
const filters = [ |
|
|
const filters = [ |
|
|
{ |
|
|
{ |
|
|
name: "floodZones", |
|
|
name: "floodZones", |
|
|
|
|
|
url: endpoint + |
|
|
|
|
|
`type=FLOODZONES_FORM&time=${finalDate}/${initialDate}&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=50`, |
|
|
socketUrl: new WebSocket( |
|
|
socketUrl: new WebSocket( |
|
|
endpoint + |
|
|
endpoint + |
|
|
`type=FLOODZONES_FORM&time=${finalDate}/${initialDate}&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=50` |
|
|
`type=FLOODZONES_FORM&time=${finalDate}/${initialDate}&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=50` |
|
@ -18,6 +20,8 @@ function useFiltering(location) { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: "rain", |
|
|
name: "rain", |
|
|
|
|
|
url: endpoint + |
|
|
|
|
|
`type=RAIN_FORM&time=${finalDate}/${initialDate}&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=50`, |
|
|
socketUrl: new WebSocket( |
|
|
socketUrl: new WebSocket( |
|
|
endpoint + |
|
|
endpoint + |
|
|
`type=RAIN_FORM&time=${finalDate}/${initialDate}&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=50` |
|
|
`type=RAIN_FORM&time=${finalDate}/${initialDate}&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=50` |
|
@ -25,6 +29,8 @@ function useFiltering(location) { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: "riverFlood", |
|
|
name: "riverFlood", |
|
|
|
|
|
url: endpoint + |
|
|
|
|
|
`type=RIVERFLOOD_FORM&time=${finalDate}/${initialDate}&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=50`, |
|
|
socketUrl: new WebSocket( |
|
|
socketUrl: new WebSocket( |
|
|
endpoint + |
|
|
endpoint + |
|
|
`type=RIVERFLOOD_FORM&time=${finalDate}/${initialDate}&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=50` |
|
|
`type=RIVERFLOOD_FORM&time=${finalDate}/${initialDate}&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=50` |
|
@ -32,6 +38,8 @@ function useFiltering(location) { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: "pluviometer", |
|
|
name: "pluviometer", |
|
|
|
|
|
url: endpoint + |
|
|
|
|
|
`type=PLUVIOMETER_REGISTRATION&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=50`, |
|
|
socketUrl: new WebSocket( |
|
|
socketUrl: new WebSocket( |
|
|
endpoint + |
|
|
endpoint + |
|
|
`type=PLUVIOMETER_REGISTRATION&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=50` |
|
|
`type=PLUVIOMETER_REGISTRATION&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=50` |
|
@ -39,6 +47,8 @@ function useFiltering(location) { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: "susceptibilityAreas", |
|
|
name: "susceptibilityAreas", |
|
|
|
|
|
url: endpoint + |
|
|
|
|
|
`type=FLOODZONES_OFFICIAL&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=20`, |
|
|
socketUrl: new WebSocket( |
|
|
socketUrl: new WebSocket( |
|
|
endpoint + |
|
|
endpoint + |
|
|
`type=FLOODZONES_OFFICIAL&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=20` |
|
|
`type=FLOODZONES_OFFICIAL&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=20` |
|
@ -46,6 +56,8 @@ function useFiltering(location) { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: "automaticPluviometer", |
|
|
name: "automaticPluviometer", |
|
|
|
|
|
url: endpoint + |
|
|
|
|
|
`type=PLUVIOMETERS_OFFICIAL&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=20`, |
|
|
socketUrl: new WebSocket( |
|
|
socketUrl: new WebSocket( |
|
|
endpoint + |
|
|
endpoint + |
|
|
`type=PLUVIOMETERS_OFFICIAL&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=20` |
|
|
`type=PLUVIOMETERS_OFFICIAL&lat=${location.lat}&lon=${location.long}&buffer=50000&limit=20` |
|
|