summaryrefslogtreecommitdiff
path: root/navit/vehicleprofile.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-05-12 08:26:22 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2010-05-12 08:26:22 +0000
commit6c4f3ff463df27373e0c9349dd8490bf642fe734 (patch)
tree3ef68e59d32547d623f7faf5f033370bfb1d26d5 /navit/vehicleprofile.h
parent98a69f0c5284ec29c8442ac986589c1527273a11 (diff)
downloadnavit-6c4f3ff463df27373e0c9349dd8490bf642fe734.tar.gz
Add:Core:Support for length and weight restrictions
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3236 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicleprofile.h')
-rw-r--r--navit/vehicleprofile.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/navit/vehicleprofile.h b/navit/vehicleprofile.h
index 3765af944..d8eb4ca1b 100644
--- a/navit/vehicleprofile.h
+++ b/navit/vehicleprofile.h
@@ -22,14 +22,20 @@
extern "C" {
#endif
struct vehicleprofile {
- int mode; /**< 0 = Auto, 1 = On-Road, 2 = Off-Road */
+ int mode; /**< 0 = Auto, 1 = On-Road, 2 = Off-Road */
int flags_forward_mask; /**< Flags mask for moving in positive direction */
int flags_reverse_mask; /**< Flags mask for moving in reverse direction */
- int flags; /**< Required flags to move through a segment */
+ int flags; /**< Required flags to move through a segment */
int maxspeed_handling; /**< 0 = Always, 1 = Only if lower, 2 = Never */
- int static_speed; /**< Maximum speed of vehicle to consider it stationary */
+ int static_speed; /**< Maximum speed of vehicle to consider it stationary */
int static_distance; /**< Maximum distance of previous position of vehicle to consider it stationary */
- char *name; // the vehicle profile name
+ char *name; /**< the vehicle profile name */
+ int width; /**< Width of the vehicle in cm */
+ int height; /**< Height of the vehicle in cm */
+ int length; /**< Length of the vehicle in cm */
+ int weight; /**< Weight of the vehicle in kg */
+ int axle_weight; /**< Axle Weight of the vehicle in kg */
+ int dangerous_goods; /**< Flags of dangerous goods present */
struct attr **attrs;
GHashTable *roadprofile_hash;
};