gdouble lon;
gfloat altitude;
gboolean valid;
+ gchar *desc;
+ time_t time;
+ guint type;
};
/** A general definition of a point in the Mapper unit system. */
/** A Path is a set of PathPoints and WayPoints. */
typedef struct _Path Path;
struct _Path {
+ /* Path points */
Point *head; /* points to first element in array; NULL if empty. */
Point *tail; /* points to last element in array. */
- Point *cap; /* points after last slot in array. */
+ Point *cap; /* points after last slot in array. */
+
+ /* Path waypoints */
WayPoint *whead; /* points to first element in array; NULL if empty. */
WayPoint *wtail; /* points to last element in array. */
WayPoint *wcap; /* points after last slot in array. */
+
+ /* Path statistics */
guint32 points;
gdouble length;
gdouble tspeed;
gdouble avgspeed;
gfloat maxspeed;
+
+ /* GPX metadata fields */
+ gchar *name;
+ gchar *desc;
+ gchar *author;
+ gchar *keywords;
+ time_t time;
+ gchar *copyright;
+ gchar *src;
};
+/* Null point */
Point _point_null;
+
+/* Special positions */
Position _home;
Position _dest;