I'm using the OpenTripPlanner Planner API to find directions.
The API returns XML with the geometry of the line (2D) and the elevation data separately, for example
The 2D line geometry is as encodedPolylineBean in:
response .plan ..intineraries ...legs ....legGeometry .....points
And looks something like
But the elevation data is in:
response .plan ..intineraries ...leg ....steps .....elevation
And Looks like:
<elevation> <first>5.322</first> <second>73.87</second> </elevation> <elevation> <first>15.322</first> <second>74.25</second> </elevation> <elevation> <first>25.322</first> <second>74.56</second> </elevation> <elevation>
What I don't understand is:
- What is the difference between the
- Why when the PolylineBean line is decoded does it have fewer points than the number of values given for the elevation?
For reference, a full XML response is available here