Skip to content

process_turn: turn.roads_on_the_left does not contain incoming roads #5128

@themylogin

Description

@themylogin

I've discovered that

  • turn.roads_on_the_left does not contain incoming roads
  • turn.roads_on_the_right does not contain outgoing roads

The following test fails:


    Scenario: Turns should have correct information of other roads at intersection III
        Given the node map
            """
              b
              |
            a-c-d
              |
              e
            """
        And the ways
            | nodes | highway       | oneway |
            | ac    | motorway      | yes    |
            | cd    | motorway_link | yes    |
            | bc    | primary       | yes    |
            | cb    | primary_link  | yes    |
            | ce    | secondary     | yes    |
            | ec    | secondary_link| yes    |
        And the data has been saved to disk

        When I run "osrm-extract --profile {profile_file} {osm_file}"
        Then it should exit successfully
        # Turn acd
        # on the left there should be bc and cb
        And stdout should contain /roads_on_the_left \[[12]\] speed: [0-9]+, is_incoming: true, is_outgoing: false, highway_turn_classification: [0-9]+, access_turn_classification: 0, priority_class: 4/
        And stdout should contain /roads_on_the_left \[[12]\] speed: [0-9]+, is_incoming: false, is_outgoing: true, highway_turn_classification: [0-9]+, access_turn_classification: 0, priority_class: 5/
        # on the left there should be ce and ec
        And stdout should contain /roads_on_the_right \[[12]\] speed: [0-9]+, is_incoming: false, is_outgoing: true, highway_turn_classification: [0-9]+, access_turn_classification: 0, priority_class: 6/
        And stdout should contain /roads_on_the_right \[[12]\] speed: [0-9]+, is_incoming: true, is_outgoing: false, highway_turn_classification: [0-9]+, access_turn_classification: 0, priority_class: 7/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions