worldbank / GOSTnets

Convenience wrapper for networkx analysis using geospatial information, focusing on OSM
https://worldbank.github.io/GOSTnets/
MIT License
21 stars 15 forks source link

adding add_intersection_delay #37

Closed d3netxer closed 2 years ago

d3netxer commented 2 years ago

Adding the add_intersection_delay function to GOSTnets core. This lets you add a delay to intersections in your graph.

It cannot determine delays based on turn types, but better than nothing. Implemented because in Cap Haitian project we are comparing the effect of intersections in study areas and wanted more realistic results of the differences of interrupted intersections.

The algorithm is semi-intelligent as if the highest rank road at an intersection intersects a lower rank road, then the highest rank road does not get delayed. This assumes the highest rank road has the right-of-way.