What is the actual default walk speed for route planner?
Hi, I am using the https://api.resrobot.se/v2.1/trip endpoint trying to set a specific walk speed. I am using the destWalk and originWalk params and setting the relative walking time (in %) based of the default walk speed of 4.5 hm/h as specified in OpenApi documentation. It initially seemed to be working as wanted, however when I started testing I couldn't help to notice that the default walk speed doesn't appear to be 4.5 km/h as specified (which means my relative walking time values will not match the speed I want).
For example if you search form Arlanda Terminal 2-3 to Stockholm Nationalmusem: https://api.resrobot.se/v2.1/trip?format=json&lang=sv&originId=740020671&destId=740010947&date=2025-10-09&time=11:54&products=510&operators=!838&passlist=true&showPassingPoints=true&searchForArrival=false
one of the options says it takes 16 minutes to walk from Stockholm Centralstation to Stockholm Nationalmusem with a distance of 1348m. For a person to use 16 minutes to walk 1348 m they need to have a walk speed of 5 km/h (1,4m/s).
In addition, one of the other options says it will take 17 minutes to walk from Stockholm Cityterminalen to Stockholm Nationalmusem with a distance of 1565 m. That means a person has to have a walk speed of 5,5 km/h (1,53m/s).
(If any of my math is incorrect please let me know)
So why does the walk speed seem to vary and what it the actual default walk speed for destWalk and originWalk?
For example if you search form Arlanda Terminal 2-3 to Stockholm Nationalmusem: https://api.resrobot.se/v2.1/trip?format=json&lang=sv&originId=740020671&destId=740010947&date=2025-10-09&time=11:54&products=510&operators=!838&passlist=true&showPassingPoints=true&searchForArrival=false
one of the options says it takes 16 minutes to walk from Stockholm Centralstation to Stockholm Nationalmusem with a distance of 1348m. For a person to use 16 minutes to walk 1348 m they need to have a walk speed of 5 km/h (1,4m/s).
In addition, one of the other options says it will take 17 minutes to walk from Stockholm Cityterminalen to Stockholm Nationalmusem with a distance of 1565 m. That means a person has to have a walk speed of 5,5 km/h (1,53m/s).
(If any of my math is incorrect please let me know)
So why does the walk speed seem to vary and what it the actual default walk speed for destWalk and originWalk?
Följ inlägget
1
följare
I forwarded your question to our system provider last friday but havn´t received any reply yet. I will let you know when I hear anything.
Best regards,
Sofie
has there been an update?
I'm afraid I havn´t heard anything. We have a ticket there in progress, so hopefully it won´t take too long.
Best regards,
Sofie
Last time I heard from them was on november 11 and then they were still working on it. I have sent another reminder to them today.
Best regards,
Sofie
I got an answer to your question:
The default walking speed on roads is set to 4km/h. However, there are several factors that can influence the result: road category, road surface, intersections, road crossings, as well as internal logic for specific trips can bring it's own factor.
So there is not a static speed value but a combination of different factors that makes an impact to the default value. That´s the reason there is a difference of 0.5 km/h between these two routes for the given examples.
Best regards
Sofie
Is it possible to also update the API documentation so that the correct walking speed is stated? (It currently says the default walking speed is 5km/h)
I don't know if this has been recently updated or not but we will update our documentation so that it matches what is correct right now.
Since we do not have any insights ourselves we can only go on what our supplier replied above, that they have many different factors that goes into the equation.
If this is something critical to your operation that needs to be changed then I would suggest to contact the person at Samtrafiken who is your contact person regarding contracts etc. so that you can discuss it further.
Best regards,
Sofie