decode {flexpolyline} | R Documentation |
This function calls hf::polyline_decode
and
hf::get_third_dimension
of the C++ implementation of the flexible
polyline encoding by HERE. Depending on the dimensions of the encoded line,
a two or three dimensional line is decoded.
decode(encoded)
encoded |
character, encoded flexible polyline string. |
A matrix containing the coordinates of the decoded line.
# 2d line
decode("BFoz5xJ67i1B1B7PzIhaxL7Y")
# 3d line
decode("BlBoz5xJ67i1BU1B7PUzIhaUxL7YU")