powered by
Encodes a series of lat/lon coordinates that specify a path into an encoded polyline
encode_pl(lat, lon)
vector of latitude coordinates
vector of longitude coordinates
string encoded polyline
decode_pl
# NOT RUN { encode_pl(lat = c(38.5, 40.7, 43.252), lon = c(-120.2, -120.95, -126.453)) ## "_p~iF~ps|U_ulLnnqC_mqNvxq`@" # }
Run the code above in your browser using DataLab