Manage whitespaces in the 'the 'label' argument of 'get_sf_features' functions
Currently, the get_sf_features functions return an error if the label contains a whitespace:
get_sf_hydro(label = "seine à paris")
## Error: Hydroportail API request failed [Error 400 Bad Request]
The whitespace has to be replaced by a html code:
get_sf_hydro(label = "seine%20à%20paris")
S## imple feature collection with 3 features and 4 fields
## Geometry type: POINT
## Dimension: XY
## Bounding box: xmin: 2.365511 ymin: 48.84469 xmax: 2.365511 ymax: 48.84469
## Geodetic CRS: WGS 84
## entityType code label type geometry
## 1 site F7000001 La Seine à Paris STANDARD POINT (2.365511 48.84469)
## 2 station F700000102 La Seine à Paris - Austerlitz - station limni - secours CT STD POINT (2.365511 48.84469)
## 3 station F700000103 La Seine à Paris - Austerlitz [>2006] - Station débitmétrique DEB POINT (2.365511 48.84469)