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: | ||
Cc: |
Description
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)
Change History (3)
Changed 14 years ago by Lordsutch
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.
Patch for osm2navit.c (corrected)