decode_pl | R Documentation |
Decodes an encoded polyline into the series of lat/lon coordinates that specify the path
decode_pl(encoded)
encoded |
String. An encoded polyline |
data.frame of lat/lon coordinates
An encoded polyline is generated from google's polyline encoding algorithm (https://developers.google.com/maps/documentation/utilities/polylinealgorithm).
encode_pl, google_directions
## polyline joining the capital cities of Australian states
pl <- "nnseFmpzsZgalNytrXetrG}krKsaif@kivIccvzAvvqfClp~uBlymzA~ocQ}_}iCthxo@srst@"
df_polyline <- decode_pl(pl)
df_polyline
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.