googleway (version 2.7.8)

decode_pl: Decode PL

Description

Decodes an encoded polyline into the series of lat/lon coordinates that specify the path

Usage

decode_pl(encoded)

Value

data.frame of lat/lon coordinates

Arguments

encoded

String. An encoded polyline

See Also

encode_pl, google_directions

Examples

Run this code
## polyline joining the capital cities of Australian states
pl <- "nnseFmpzsZgalNytrXetrG}krKsaif@kivIccvzAvvqfClp~uBlymzA~ocQ}_}iCthxo@srst@"

df_polyline <- decode_pl(pl)
df_polyline

Run the code above in your browser using DataLab