Osrm-backend: Extract maxspeed

Created on 7 Aug 2017  路  3Comments  路  Source: Project-OSRM/osrm-backend

Hello everyone, I want to extract maxspeed from a way information is there any route or function that i can use?

Most helpful comment

If you only want the maxspeed tag you don't need a routing engine at all.

Either make an overpass turbo query or write a small osmium handler to walk over all ways and fetch the maxspeed tag from there.

All 3 comments

Care to elaborate a bit more?

In the profiles (e.g. car.lua) you calculate a max speed based on all available OSM tags (such as the maxspeed tag, lane tag, surface tag, etc.) - where do you want to extract a maxspeed now?

If you're looking for speeds along the route geometry, see the annotations=speee flag:

http://project-osrm.org/docs/v5.10.0/api/#route-service

If you only want the maxspeed tag you don't need a routing engine at all.

Either make an overpass turbo query or write a small osmium handler to walk over all ways and fetch the maxspeed tag from there.

Thanks for your time @daniel-j-h

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bardo-Konrad picture Bardo-Konrad  路  3Comments

ltsstar picture ltsstar  路  5Comments

RajibChanda picture RajibChanda  路  4Comments

freenerd picture freenerd  路  4Comments

JamesLawrenceGSI picture JamesLawrenceGSI  路  3Comments