Difference between revisions of "Implementing Speedlimits"

From Navit's Wiki
Jump to: navigation, search
(New page: * Add a speedlimit attribute to attr_def.h * Assign a new bit to AF_ for "speedlimit present" (to avoid querying the speedlimit attribute if it isn't present) * Change osm2navit to write t...)
 
m (I think cp15 did that somewhen...)
Line 1: Line 1:
 
* Add a speedlimit attribute to attr_def.h
 
* Add a speedlimit attribute to attr_def.h
* Assign a new bit to AF_ for "speedlimit present" (to avoid querying the speedlimit attribute if it isn't present)
 
 
* Change osm2navit to write the speedlimit attribute if present (and set the appropriate flag as described above)
 
* Change osm2navit to write the speedlimit attribute if present (and set the appropriate flag as described above)
 
* Change routing code to query speedlimit if the "speedlimit present" bit is set and add the speed limit to the segment
 
* Change routing code to query speedlimit if the "speedlimit present" bit is set and add the speed limit to the segment
 
* In the graph flooding algorithm, use the speedlimit (together with a configurable factor to raise or lower the actual used speed) instead of the default speed for this segment
 
* In the graph flooding algorithm, use the speedlimit (together with a configurable factor to raise or lower the actual used speed) instead of the default speed for this segment
 +
 +
===Already done:===
 +
* Assign a new bit to AF_ for "speedlimit present" (to avoid querying the speedlimit attribute if it isn't present)

Revision as of 11:38, 19 February 2009

  • Add a speedlimit attribute to attr_def.h
  • Change osm2navit to write the speedlimit attribute if present (and set the appropriate flag as described above)
  • Change routing code to query speedlimit if the "speedlimit present" bit is set and add the speed limit to the segment
  • In the graph flooding algorithm, use the speedlimit (together with a configurable factor to raise or lower the actual used speed) instead of the default speed for this segment

Already done:

  • Assign a new bit to AF_ for "speedlimit present" (to avoid querying the speedlimit attribute if it isn't present)