encode_pl: Encode PL

Description Usage Arguments Value Note See Also Examples

View source: R/polyline.R

Description

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

Usage

1
encode_pl(lat, lon)

Arguments

lat

vector of latitude coordinates

lon

vector of longitude coordinates

Value

string encoded polyline

Note

An encoded polyline is generated from google's polyline encoding algorithm (https://developers.google.com/maps/documentation/utilities/polylinealgorithm).

See Also

decode_pl

Examples

1
2
encode_pl(lat = c(38.5, 40.7, 43.252), lon = c(-120.2, -120.95, -126.453))
## "_p~iF~ps|U_ulLnnqC_mqNvxq`@"

googleway documentation built on Nov. 16, 2020, 9:08 a.m.