summaryrefslogtreecommitdiff
path: root/navit/route_protected.h
diff options
context:
space:
mode:
authormvglasow <michael -at- vonglasow.com>2018-08-04 20:04:49 +0200
committermvglasow <michael -at- vonglasow.com>2018-08-04 20:52:32 +0200
commit7becb7b2fb244cce0673c33710a1c3edaa387009 (patch)
tree35105fc7f88a1e26391e46db11a12db98ea602ec /navit/route_protected.h
parentac39fed761c53c199ec821da92bbd2e309f80d81 (diff)
downloadnavit-7becb7b2fb244cce0673c33710a1c3edaa387009.tar.gz
Fix:traffic:Honor turn restrictions when identifying affected segments
Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit/route_protected.h')
-rw-r--r--navit/route_protected.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/navit/route_protected.h b/navit/route_protected.h
index b22630bb8..be38749f2 100644
--- a/navit/route_protected.h
+++ b/navit/route_protected.h
@@ -35,6 +35,10 @@ extern "C" {
#endif
+#define RP_TRAFFIC_DISTORTION 1
+#define RP_TURN_RESTRICTION 2
+#define RP_TURN_RESTRICTION_RESOLVED 4
+
#define RSD_MAXSPEED(x) *((int *)route_segment_data_field_pos((x), attr_maxspeed))
/**
@@ -157,6 +161,7 @@ void route_add_traffic_distortion(struct route *this_, struct item *item);
void route_remove_traffic_distortion(struct route *this_, struct item *item);
void route_change_traffic_distortion(struct route *this_, struct item *item);
struct route_graph_point * route_graph_add_point(struct route_graph *this, struct coord *f);
+void route_graph_add_turn_restriction(struct route_graph *this, struct item *item);
void route_graph_free_points(struct route_graph *this);
struct route_graph_point *route_graph_get_point(struct route_graph *this, struct coord *c);
void route_graph_add_segment(struct route_graph *this, struct route_graph_point *start,