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"
22 /** The current route. */
25 /** The singleton auto-route-download data. */
26 AutoRouteDownloadData _autoroute_data;
28 gboolean route_open_file(Path *route);
29 gboolean route_save(Path *route);
30 gboolean route_download(Path *route, gchar *to);
31 gboolean route_clear(Path *route);
33 void route_check_waypoint_announce(Path *route, GpsData *gps);
34 void route_autoroute_check(Path *route);
36 gboolean route_auto_route_dl_idle_cb();
37 void route_cancel_autoroute(Path *route, gboolean temporary);
39 void route_find_nearest_point(Path *route);
40 WayPoint *route_find_nearest_waypoint(Path *route, guint unitx, guint unity);
42 gboolean route_update_nears(Path *route, gboolean quick);
44 gboolean route_set_destination_from_last(Path *route, Position *pos);
46 gboolean route_show_distance_to(Path *route, Point *point);
47 void route_show_distance_to_last(Path *route);
48 void route_show_distance_to_next(Path *route);