decode_pl {googleway} | R Documentation |
Decode PL
Description
Decodes an encoded polyline into the series of lat/lon coordinates that specify the path
Usage
decode_pl(encoded)
Arguments
encoded |
String. An encoded polyline |
Value
data.frame of lat/lon coordinates
Note
An encoded polyline is generated from google's polyline encoding algorithm (https://developers.google.com/maps/documentation/utilities/polylinealgorithm).
See Also
Examples
## polyline joining the capital cities of Australian states
pl <- "nnseFmpzsZgalNytrXetrG}krKsaif@kivIccvzAvvqfClp~uBlymzA~ocQ}_}iCthxo@srst@"
df_polyline <- decode_pl(pl)
df_polyline
[Package googleway version 2.7.8 Index]