Skip to content

Route Attributes

With the request body parameter attributes, additional attributes of route segments can be requested in a directions request:

json
"attributes":["avgspeed","detourfactor","percentage"]

The possible values are:

ValueDescription
avgspeedThis value is in km/h and equals the average speed for this way segment after grading and applying factors.
detourfactorThis value is a factor and gives the relative length of the segment with regard to the length of the beeline between the start and end point of the route segment.
percentageThis value is in percent and gives the segment length in terms of the route length.

In the response, the additional attributes can be found in

jsonpath
$.routes[*].segments[*].avgspeed
$.routes[*].segments[*].detourfactor
$.routes[*].segments[*].percentage