Opened 14 years ago

Closed 14 years ago

#324 closed defect/bug (fixed)

Small patch for osm2navit to convert maxspeed in MPH

Reported by: Lordsutch Owned by: KaZeR
Priority: minor Milestone: version 0.2.0
Component: core Version: git master
Severity: Keywords:


Many roads in the UK and US are tagged with maxspeed in mph; this probably should be converted to km/h for use in Navit binfiles.

The attached patch detects "mph" in the value of these tags and converts the values to km/h using a reasonably precise conversion factor, rounding down as legally e.g. 97 km/h is over 60 mph and therefore speeding, but 96 km/h is permissible.

(The floor call may actually be unnecessary since the result is being casted to int.)

Attachments (1)

maxspeed.diff (492 bytes) - added by Lordsutch 14 years ago.
Patch for osm2navit.c (corrected)

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by Lordsutch

Patch for osm2navit.c (corrected)

comment:1 Changed 14 years ago by KaZeR

  • Milestone set to version 0.2.0

comment:2 Changed 14 years ago by KaZeR

  • Resolution set to fixed
  • Status changed from new to closed

Applied in rev #2327, thank you!

Note: See TracTickets for help on using tickets.