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);
37 gboolean route_auto_route_dl_idle_cb();
38 void route_cancel_autoroute(Path *route, gboolean temporary);
40 void route_find_nearest_point(Path *route);
41 WayPoint *route_find_nearest_waypoint(Path *route, guint unitx, guint unity);
43 gboolean route_update_nears(Path *route, gboolean quick);
45 gboolean route_set_destination_from_last(Path *route, Position *pos);
47 gboolean route_show_distance_to(Path *route, Point *point);
48 void route_show_distance_to_last(Path *route);
49 void route_show_distance_to_next(Path *route);