polyline2linestring: Convert Google Encoded Polyline and elevation data into sf...

Description Usage Arguments

View source: R/otp-route.R

Description

OTP returns the 2d route as a polyline bean and the elevation profile as vector of numbers But the number of points for each is not the same, as 2D line only has a point at change of directions While elevation is regally spaced. If elevation is supplied the correct heights are matched

Usage

1

Arguments

line

character - polyline

elevation

numeric - vector of elevations


marcusyoung/opentripplanner documentation built on May 20, 2019, 4:42 p.m.