#include "utils.h"
#include "mapper-types.h"
+#include "path.h"
+#include "position.h"
/** The current route. */
Path *_route;
-/** Data for tracking waypoints for the purpose of announcement. */
-
-/* _near_point is the route point to which we are closest. */
-Point *_near_point;
-guint64 _near_point_dist_squared;
-
-/* _next_way is what we currently interpret to be the next waypoint. */
-WayPoint *_next_way;
-guint64 _next_way_dist_squared;
-gchar *_last_spoken_phrase;
-
-/* _next_wpt is the route point immediately following _next_way. */
-Point *_next_wpt;
-guint64 _next_wpt_dist_squared;
-
/** The singleton auto-route-download data. */
AutoRouteDownloadData _autoroute_data;
gboolean route_clear(Path *route);
void route_check_waypoint_announce(Path *route, GpsData *gps);
-void route_autoroute_check(Path *route);
gboolean route_auto_route_dl_idle_cb();
void route_cancel_autoroute(Path *route, gboolean temporary);
gboolean route_update_nears(Path *route, gboolean quick);
+gboolean route_set_destination_from_last(Path *route, Position *pos);
+
gboolean route_show_distance_to(Path *route, Point *point);
void route_show_distance_to_last(Path *route);
void route_show_distance_to_next(Path *route);