Deltares / ra2ce

RA2CE helps to quantify resilience of critical infrastructure networks, prioritize interventions and adaptation measures and select the most appropriate action perspective to increase resilience considering future conditions.
https://deltares.github.io/ra2ce/
Other
11 stars 2 forks source link

feat/549 calculate avg speed based on link_type_column (with fallback "highway") #550

Closed ArdtK closed 3 months ago

ArdtK commented 3 months ago

Issue addressed

Solves #549

Code of conduct

What has been done?

Use the columnname defined as link_type_column in the network configuration instead of the hardcode value "highway". If no value is provided in the configuration "highway" should be used as fallback.

Checklist

Additional Notes (optional)

In addition a change is made in which only edges with maxspeed > 0 are taken into account when calculating the average speed of a certail road type.