From bb3a9be52ba8c53f5051b1eaf44f385d3dc3b60a Mon Sep 17 00:00:00 2001 From: tinloaf Date: Sat, 21 Feb 2009 17:52:54 +0000 Subject: Add:Core:Implementing speedlimits git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2061 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/route.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'navit/route.h') diff --git a/navit/route.h b/navit/route.h index 787bc2b6b..936cb96c0 100644 --- a/navit/route.h +++ b/navit/route.h @@ -47,7 +47,9 @@ struct street_data { struct item item; /**< The map item for this street */ int count; /**< Number of coordinates this street has */ int flags; - struct coord c[0]; /**< Pointer to the coordinates of this street */ + int maxspeed; /**< Maximum speed allowed on this street. */ + struct coord c[0]; /**< Pointer to the coordinates of this street. + * DO NOT INSERT FIELDS AFTER THIS. */ }; #define route_item_first type_street_0 @@ -93,7 +95,7 @@ void route_path_close(struct route_path_handle *h); struct route_path_coord_handle *route_path_coord_open(struct route *this); struct coord *route_path_coord_get(struct route_path_coord_handle *h); void route_path_coord_close(struct route_path_coord_handle *h); -int route_time(int *speedlist, struct item *item, int len); +int route_time(int *speedlist, struct item *item, int len, int maxspeed); int route_info_length(struct route_info *pos, struct route_info *dst, int dir); struct street_data *street_get_data(struct item *item); struct street_data *street_data_dup(struct street_data *orig); -- cgit v1.2.1