diff options
author | mvglasow <michael -at- vonglasow.com> | 2018-01-10 18:14:52 +0100 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2018-01-10 18:14:52 +0100 |
commit | 3ef0f0aa2462b5e16c9153f7695095b905790dcd (patch) | |
tree | ae7fd03acb5f2f840ad959d4a55b33ad98777f4a /navit/route_protected.h | |
parent | 97ed109619247f4647a3c514761f4aa62d6c6279 (diff) | |
download | navit-3ef0f0aa2462b5e16c9153f7695095b905790dcd.tar.gz |
Add:route:Add field for segment score, needed by traffic module
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit/route_protected.h')
-rw-r--r-- | navit/route_protected.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/navit/route_protected.h b/navit/route_protected.h index ec5752f41..0d3a44965 100644 --- a/navit/route_protected.h +++ b/navit/route_protected.h @@ -68,6 +68,8 @@ struct route_segment_data { struct item item; /**< The item (e.g. street) that this segment represents. */ int flags; int len; /**< Length of this segment, in meters */ + int score; /**< Used by the traffic module to give preference to some + * segments over others */ /*NOTE: After a segment, various fields may follow, depending on what flags are set. Order of fields: 1.) maxspeed Maximum allowed speed on this segment. Present if AF_SPEED_LIMIT is set. 2.) offset If the item is segmented (i.e. represented by more than one segment), this @@ -100,6 +102,8 @@ struct route_graph_segment_data { * -1 if not known */ struct size_weight_limit size_weight; /**< Size and weight limits for this segment */ int dangerous_goods; + int score; /**< Used by the traffic module to give preference to some + * segments over others */ }; /** |