Calculate travel time on road map with semaphores
- by Ivansek
I have a road map with intersections. At intersections there are semaphores. For each semaphore I generate a red light time and green light time which are represented with syntax [R:T1, G:T2], for example:
119 185 250
A ------- B: [R:6, G:4] ------ C: [R:5, G:5] ------ D
I want to calculate a car travel time…