#define W_LINK (1 << 3)
#define W_AREA (1 << 4)
#define W_NOEXIT (1 << 5)
+#define W_NOACCESS (1 << 6)
#define ILAT_TURKU 911084432
#define ILON_TURKU 265542144
WAY_OTHER
} way_type_t;
+/* Route waypoint types */
+typedef enum {
+ WPT_START,
+ WPT_STOP,
+ WPT_END
+} waypoint_type_t;
+
+/* A place (city,town,village,suburb) */
typedef struct _osm_place osm_place;
struct _osm_place {
guint32 id;
guint32 isin;
};
+/* Way node */
+typedef struct _osm_way_node osm_way_node;
+struct _osm_way_node {
+ guint num;
+ gint lat;
+ gint lon;
+};
+
+/* Way */
typedef struct _osm_way osm_way;
struct _osm_way {
guint32 id;
guint32 isin;
guint node_num;
gdouble dist;
+ gdouble distance;
gchar *name;
gchar *ref;
gchar *int_ref;
+ osm_way_node *node_f;
+ osm_way_node *node_t;
+ gshort direction;
GList *nodes;
};
-typedef struct _osm_way_node osm_way_node;
-struct _osm_way_node {
- guint num;
- gint lat;
- gint lon;
+/* Route waypoint */
+typedef struct _osm_waypoint osm_waypoint;
+struct _osm_waypoint {
+ osm_way *way;
+ waypoint_type_t type;
+};
+
+typedef struct _osm_location osm_location;
+struct _osm_location {
+ osm_way *street;
+ osm_place *primary;
+ osm_place *secondary;
};
#endif