2 * Copyright (C) 2006, 2007 John Costigan.
4 * POI and GPS-Info code originally written by Cezary Jackiewicz.
6 * Default map data provided by http://www.openstreetmap.org/
8 * This file is part of Maemo Mapper.
10 * Maemo Mapper is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
15 * Maemo Mapper is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with Maemo Mapper. If not, see <http://www.gnu.org/licenses/>.
24 #ifndef MAEMO_MAPPER_PATH_H
25 #define MAEMO_MAPPER_PATH_H
27 void path_resize(Path *path, gint size);
28 void path_wresize(Path *path, gint wsize);
30 void path_save_route_to_db(void);
32 void route_find_nearest_point(void);
33 gboolean route_show_distance_to(Point *point);
34 void route_show_distance_to_next(void);
35 void route_show_distance_to_last(void);
37 void track_show_distance_from_last(void);
38 void track_show_distance_from_first(void);
40 gboolean track_add(time_t time, gboolean newly_fixed);
41 void track_clear(void);
42 void track_insert_break(gboolean temporary);
44 void path_reset_route(void);
46 void cancel_autoroute(void);
48 WayPoint * find_nearest_waypoint(gint unitx, gint unity);
50 gboolean route_download(gchar *to);
51 void route_add_way_dialog(gint unitx, gint unity);
53 WayPoint* path_get_next_way(void);
56 void path_destroy(void);
58 #endif /* ifndef MAEMO_MAPPER_PATH_H */