Skip to content

Allow penalties for arbitrary nodes #1490

@TheMarex

Description

@TheMarex

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 #534.

Brain dump on how to do this:

  • Replace bool ExtractionNode::traffic_lights with short ExtractionNode::penalty
  • Adapt graph_loader.cpp to load nodes with penalty > 0 in a separate array
  • Adapt m_traffic_lights in EdgeBasedGraphFactory

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions