[OSRM-talk] edge weight in map.osrm

Aengus McCullough aengusmccullough at hotmail.com
Tue Jun 4 19:36:17 UTC 2013


Hi,
I am attempting to create OSRM input files from a non-openstreetmap data source. I have been unable to find any information about the edge-weight field in the map.osrm file.

From the wiki:
(signed int (4 bytes): edge weight (unit): 1/10s); MUST be > 0

Can anyone explain how this field is used in the route calculation?  I am particularly confused about the relationship between this field, and the values specified in the profile.lua.  Which one is given precedence?  Ultimately I am trying to determine how to calculate this field.  Should I simply use Speed Limit / Length for each road segment, or a more complicated weighting based on the road-type?

Many Thanks,
Aengus


More information about the OSRM-talk mailing list