20 #ifndef NAVIT_NAVIGATION_H 21 #define NAVIT_NAVIGATION_H 23 #define FEET_PER_METER 3.2808399 24 #define FEET_PER_MILE 5280 25 #define KILOMETERS_TO_MILES 0.62137119 30 #define METERS_TO_MILES (KILOMETERS_TO_MILES/1000.0) 35 #define MPS_TO_KPH 3.6 Definition: navigation.c:161
attr_type
Definition: attr.h:34
int navigation_set_attr(struct navigation *this_, struct attr *attr)
Definition: navigation.c:760
int navigation_set_announce(struct navigation *this_, enum item_type type, int *level)
Definition: navigation.c:808
Definition: gpx2navit_txt.h:51
Definition: navigation.h:49
Definition: navigation.h:57
int navigation_register_callback(struct navigation *this_, enum attr_type type, struct callback *cb)
Registers a new callback function.
Definition: navigation.c:3813
Definition: garmin_img.c:476
item_type
Definition: item.h:29
void navigation_destroy(struct navigation *this_)
Definition: navigation.c:3781
A complete route.
Definition: route.c:201
char * nav_status_to_text(int status)
Converts navigation status to human-readable text.
Definition: navigation.c:676
Definition: navigation.h:51
struct navigation * navigation_new(struct attr *parent, struct attr **attrs)
Definition: navigation.c:776
struct map * navigation_get_map(struct navigation *this_)
Definition: navigation.c:3853
Definition: navigation.h:46
int navigation_get_attr(struct navigation *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition: navigation.c:708
Definition: navigation.h:50
void navigation_init(void)
Definition: navigation.c:4317
Definition: callback.c:26
Holds information about a map.
Definition: map.c:60
Definition: navigation.h:53
nav_status
Definition: navigation.h:45
Definition: navigation.h:52
char type[3]
Definition: garmin_img.c:123
void navigation_unregister_callback(struct navigation *this_, enum attr_type type, struct callback *cb)
Unregisters a callback function.
Definition: navigation.c:3841
void navigation_set_route(struct navigation *this_, struct route *route)
Definition: navigation.c:4300