diff options
author | tinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-02-21 17:52:54 +0000 |
---|---|---|
committer | tinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-02-21 17:52:54 +0000 |
commit | bb3a9be52ba8c53f5051b1eaf44f385d3dc3b60a (patch) | |
tree | c25716a6328416b1007cee615a689f2444a83b7f /navit/route.h | |
parent | 84697c7dc00121aee00e7a8125139320046e0bd6 (diff) | |
download | navit-bb3a9be52ba8c53f5051b1eaf44f385d3dc3b60a.tar.gz |
Add:Core:Implementing speedlimits
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2061 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/route.h')
-rw-r--r-- | navit/route.h | 6 |
1 files changed, 4 insertions, 2 deletions
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); |