diff options
author | mvglasow <michael -at- vonglasow.com> | 2019-08-04 22:17:27 +0200 |
---|---|---|
committer | mvglasow <michael -at- vonglasow.com> | 2019-08-04 22:17:27 +0200 |
commit | d50469fa4a456bfbb521a4facb13507f5ef58ddd (patch) | |
tree | d9c2639aac53d811bb840cd3d59a5048b0ca59e0 | |
parent | 8116aa8fc656e50389d3e24a13dec7f2ef0868e7 (diff) | |
download | navit-d50469fa4a456bfbb521a4facb13507f5ef58ddd.tar.gz |
Refactor:traffic:Document traffic_get_item_speed()
Signed-off-by: mvglasow <michael -at- vonglasow.com>
-rw-r--r-- | navit/traffic.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/navit/traffic.c b/navit/traffic.c index 278e9f9d4..7901459f9 100644 --- a/navit/traffic.c +++ b/navit/traffic.c @@ -2696,6 +2696,13 @@ static int route_graph_point_is_endpoint_candidate(struct route_graph_point *thi return ret; } +/** + * @brief Gets the speed for a traffic distortion item. + * + * @param item The road item to which the traffic distortion refers (not the traffic distortion item) + * @param data Segment data + * @param item_maxspeed Speed limit for the item, `INT_MAX` if none + */ static int traffic_get_item_speed(struct item * item, struct seg_data * data, int item_maxspeed) { /* Speed calculated in various ways */ int maxspeed, speed, penalized_speed, factor_speed; |