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
1 | polyline2linestring(line, elevation = NULL)
|
line |
character - polyline |
elevation |
numeric - vector of elevations |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.