]> err.no Git - mapper/commitdiff
Add helper fields to location struct. (Heading and speed)
authorKaj-Michael Lang <milang@angel.tal.org>
Fri, 10 Aug 2007 08:00:50 +0000 (11:00 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Fri, 10 Aug 2007 08:00:50 +0000 (11:00 +0300)
src/osm.h

index fe4eac06a84f88c249b88eb62ee5541ef94b40a2..074a90450bad85aaee59e447e6682d8859c818bc 100644 (file)
--- a/src/osm.h
+++ b/src/osm.h
@@ -168,6 +168,7 @@ struct _osm_waypoint {
 };
 
 /* Location: way/street we are on, city/town/village/hamlet and suburb */
+/* With helpers, speed and heading at last known location */
 typedef struct _osm_location osm_location;
 struct _osm_location {
        osm_way *street;
@@ -177,6 +178,8 @@ struct _osm_location {
        gboolean valid;
        gint lat;
        gint lon;
+       gfloat heading;
+       gfloat speed;
 };
 
 #endif