summaryrefslogtreecommitdiff
path: root/navit/navit/route.h
diff options
context:
space:
mode:
authortinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-02-21 17:52:54 +0000
committertinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-02-21 17:52:54 +0000
commit4f831245a0991a82b303e45530d12615a521624b (patch)
tree3a6f7ab6c5232dc7c67d6d48f246c373ffd095bc /navit/navit/route.h
parente0e415b298b8e256bf42b8d90a00c1880b4e5a13 (diff)
downloadnavit-4f831245a0991a82b303e45530d12615a521624b.tar.gz
Add:Core:Implementing speedlimits
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@2061 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/navit/route.h')
-rw-r--r--navit/navit/route.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/navit/navit/route.h b/navit/navit/route.h
index 787bc2b6b..936cb96c0 100644
--- a/navit/navit/route.h
+++ b/navit/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);