Learn R Programming

gepaf (version 0.2.0)

decodePolyline: 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)

Value

A data frame of latitudes and longitudes is returned.

Arguments

enc_polyline

a Google polyline.

factor

number of decimal digits to be used.

Examples

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

Run the code above in your browser using DataLab