3 #ifndef _MAPPER_ROUTE_H
4 #define _MAPPER_ROUTE_H
15 #include <glib/gstdio.h>
17 #include <dbus/dbus-glib.h>
20 #include "mapper-types.h"
24 /** The current route. */
27 /** The singleton auto-route-download data. */
28 AutoRouteDownloadData _autoroute_data;
30 gboolean route_open_file(Path *route);
31 gboolean route_save(Path *route);
32 gboolean route_download(Path *route, gchar *to);
33 gboolean route_clear(Path *route);
35 void route_check_waypoint_announce(Path *route, GpsData *gps);
36 void route_autoroute_check(Path *route);
38 gboolean route_auto_route_dl_idle_cb();
39 void route_cancel_autoroute(Path *route, gboolean temporary);
41 void route_find_nearest_point(Path *route);
42 WayPoint *route_find_nearest_waypoint(Path *route, guint unitx, guint unity);
44 gboolean route_update_nears(Path *route, gboolean quick);
46 gboolean route_set_destination_from_last(Path *route, Position *pos);
48 gboolean route_show_distance_to(Path *route, Point *point);
49 void route_show_distance_to_last(Path *route);
50 void route_show_distance_to_next(Path *route);