summaryrefslogtreecommitdiff
path: root/navit/navigation.h
diff options
context:
space:
mode:
Diffstat (limited to 'navit/navigation.h')
-rw-r--r--navit/navigation.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/navit/navigation.h b/navit/navigation.h
index 28faa015c..0651dbc79 100644
--- a/navit/navigation.h
+++ b/navit/navigation.h
@@ -22,7 +22,17 @@
#define FEET_PER_METER 3.2808399
#define FEET_PER_MILE 5280
-#define METERS_PER_MILE 1609
+#define KILOMETERS_TO_MILES 0.62137119 /* Kilometers to miles */
+
+/* It appears that distances to be displayed, such as distances to
+ * maneuvers, are in meters. Multiply that by METERS_PER_MILE and you
+ * have miles. */
+#define METERS_TO_MILES (KILOMETERS_TO_MILES/1000.0) /* Meters to miles */
+/* #define METERS_PER_MILE (1000.0/KILOMETERS_TO_MILES) */
+
+/* Meters per second to kilometers per hour. GPSD delivers speeds in
+ * meters per second. */
+#define MPS_TO_KPH 3.6
#ifdef __cplusplus
extern "C" {