Hello,
we’re trying to create our own openrouteservice instance where we’d like to to have control on the route duration as the ones based a raw openstreetmap extract do not satisfy us.
To do that, we modify the maxspeed tag on ways in the pbf but it seems the values we are putting are not being used.
For this test, we have 2 running openrouteservice instance running on 2 different pbf, each having different sets of maxspeed applied, we’ll call them v9 and v12. We chose a starting and an end point at the start and end point of 1 way (w31159325)
start point coordinates are 2.5729919, 48.9909281 and end point coordinates are 2.5468596, 48.9900683.
the 2 pbf have differing maxspeed for this way :
$ osmium getid france-custom-v9.osm.pbf w31159325 -f xml| grep maxspeed
<tag k="maxspeed" v="17.34"/>
$ osmium getid france-custom-v12.osm.pbf w31159325 -f xml| grep maxspeed
<tag k="maxspeed" v="4.55175"/>
However, when asking a matrix between those two points, duration is the same : 117.4 even if maxspeed is different
With the 4.5 maxspeed :
curl -X POST http://192.168.50.121:9000/ors/v2/matrix/driving-car -H 'Content-Type: application/json; charset=utf-8' -H 'Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8' -d '{"locations":[[2.5729919,48.9909281],[2.5468596,48.9900683]],"destinations":[1],"sources":[0],"metrics":["distance","duration"]}'
...
{
"durations": [
[
117.4
]
],
"distances": [
[
1956.78
]
],
...
With the 17 maxspeed :
curl -X POST http://192.168.50.121:9009/ors/v2/matrix/driving-car -H 'Content-Type: application/json; charset=utf-8' -H 'Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8' -d '{"locations":[[2.5729919,48.9909281],[2.5468596,48.9900683]],"destinations":[1],"sources":[0],"metrics":["distance","duration"]}'
...
{
"durations": [
[
117.4
]
],
"distances": [
[
1956.78
]
],
....
When asking directions between these two points, the distance, duration, and instructions are the same although they should be different.
Is there anything beside the maxspeed tag we should consider ? Is there anything I should look at ?
I have extracted that segment from the pbf files and can give more details if anyone needs it.