Allow penalties for arbitrary nodes
Author: TheMarexCreated May 24, 2015Updated Jul 5, 2026
LabelsFeature Request
Currently penalties are limited to traffic lights. That is overly restrictive as we could also use it for traffic calming and mini-roundabouts are mentioned in this PR https://github.com/Project-OSRM/osrm-backend/pull/534.
Brain dump on how to do this:
- Replace
bool ExtractionNode::traffic_lightswithshort ExtractionNode::penalty - Adapt
graph_loader.cppto load nodes withpenalty > 0in a separate array - Adapt
m_traffic_lightsin EdgeBasedGraphFactory
Source: Project-OSRM/osrm-backend