Wrong Average speed

I made a request in the API, but the average speed is returning a strange value.

Request:
{
“points”: [
[
-73.83485,4.28034
],
[
-73.83508,4.27932
]
],
“vehicle”: “truck”,
“points_encoded”: false,
“details”: [
“average_speed”
]
}

Respose:
response

The problem is that the index 2 and 3 are referring to the same point leading to a distance of 0. The point is a lift_gate: Node: 9664334304 | OpenStreetMap

This is a result of how we handle gates. Have created an issue here: https://github.com/graphhopper/graphhopper/issues/2636

Powered by Discourse