OTP returns elevation as a distance along the leg, resetting to 0 at each leg but we need the distance along the total route. so calculate this
1 | correct_distances(dists)
|
dists |
numeric from the elevation first column |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.