Learn R Programming

googleway (version 2.7.8)

encode_pl: Encode PL

Description

Encodes a series of lat/lon coordinates that specify a path into an encoded polyline

Usage

encode_pl(lat, lon)

Value

string encoded polyline

Arguments

lat

vector of latitude coordinates

lon

vector of longitude coordinates

See Also

decode_pl

Examples

Run this code
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