summaryrefslogtreecommitdiff
path: root/navit/route_protected.h
diff options
context:
space:
mode:
authormvglasow <michael -at- vonglasow.com>2018-01-10 18:14:52 +0100
committermvglasow <michael -at- vonglasow.com>2018-01-10 18:14:52 +0100
commit3ef0f0aa2462b5e16c9153f7695095b905790dcd (patch)
treeae7fd03acb5f2f840ad959d4a55b33ad98777f4a /navit/route_protected.h
parent97ed109619247f4647a3c514761f4aa62d6c6279 (diff)
downloadnavit-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.h4
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 */
};
/**