Skip to content

Commit 5e174a5

Browse files
committed
docs: added total ascend and descend
1 parent 2b34274 commit 5e174a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/web/api-doc.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ JSON path/attribute | Description
4141
:--------------------------|:------------
4242
info.took | How many ms the request took on the server, of course without network latency taken into account.
4343
paths | An array of possible paths
44-
paths[0].distance | The overall distance of the route, in meter
45-
paths[0].time | The overall time of the route, in ms
44+
paths[0].distance | The total distance of the route, in meter
45+
paths[0].time | The total time of the route, in ms
46+
paths[0].ascend | The total ascend (uphill) of the route
47+
paths[0].descend | The total descend (downhill) of the route
4648
paths[0].points | The polyline encoded coordinates of the path. Order is lat,lon,elelevation as it is no geoJson!
4749
paths[0].points_encoded | Is true if the points are encoded, if not paths[0].points contains the geo json of the path (then order is lon,lat,elevation), which is easier to handle but consumes more bandwidth compared to encoded version
4850
paths[0].bbox | The bounding box of the route, format: <br> minLon, minLat, maxLon, maxLat

0 commit comments

Comments
 (0)