decode_sf: Wrapper function for decoding to simple features
Description
A wrapper function for decode that converts the input polylines,
encoded in the flexible polyline enoding, to simple feature geometries of the sf package.
Usage
decode_sf(encoded, crs = sf::NA_crs_)
Value
An sf object, containing the geometries of the decoded lines (Geometry type: "LINESTRING").
Arguments
encoded
character, encoded flexible polyline string.
crs
integer or character, coordinate reference system to assign to the sf object (default = sf::NA_crs_).