decodePolyline: Decode a Google Polyline to a Data Frame

View source: R/gepaf.R

decodePolylineR Documentation

Decode a Google Polyline to a Data Frame

Description

Decode a Google polyline to a data frame of coordinates.

Usage

decodePolyline(enc_polyline, factor = 5)

Arguments

enc_polyline

a Google polyline.

factor

number of decimal digits to be used.

Value

A data frame of latitudes and longitudes is returned.

Examples

coords <- decodePolyline(enc_polyline = "_p~iF~ps|U_ulLnnqC_mqNvxq`@")
coords

gepaf documentation built on Oct. 16, 2024, 5:10 p.m.