summaryrefslogtreecommitdiff
path: root/navit/route_protected.h
diff options
context:
space:
mode:
authormvglasow <michael -at- vonglasow.com>2018-09-23 21:27:17 +0300
committermvglasow <michael -at- vonglasow.com>2018-09-23 21:27:17 +0300
commitad65a4a0a29c4220599dec8db2f1c1a5e8f07469 (patch)
tree0f1dd344839f8c238b299523afab64ba46b55e08 /navit/route_protected.h
parent1181a66b363fb6d0477b5bf81e2c15971142918d (diff)
downloadnavit-ad65a4a0a29c4220599dec8db2f1c1a5e8f07469.tar.gz
Add:traffic:Rewrite point attribute matching
Points without attributes of their own can now be matched. Analyzing all route graph points in advance is in fact more efficient than fetching each point on the route from the map individually. Signed-off-by: mvglasow <michael -at- vonglasow.com>
Diffstat (limited to 'navit/route_protected.h')
-rw-r--r--navit/route_protected.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/route_protected.h b/navit/route_protected.h
index be38749f2..1de3c7206 100644
--- a/navit/route_protected.h
+++ b/navit/route_protected.h
@@ -164,6 +164,8 @@ struct route_graph_point * route_graph_add_point(struct route_graph *this, struc
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);
+struct route_graph_point *route_graph_get_point_next(struct route_graph *this, struct coord *c,
+ struct route_graph_point *last);
void route_graph_add_segment(struct route_graph *this, struct route_graph_point *start,
struct route_graph_point *end, struct route_graph_segment_data *data);
int route_graph_segment_is_duplicate(struct route_graph_point *start, struct route_graph_segment_data *data);