Skip to content

funny u-turn #98

@emiltin

Description

@emiltin
    Scenario: Chain of Ways
        Given the nodes
         | a | b | c | d | e |

        And the ways
         | nodes |
         | ab    |
         | bc    |
         | cd    |
         | de    |

        When I route I should get
         | from | to | route       |
         | a    | e  | ab,bc,cd,de |

but actually i get: bc,cd,de,de

{"version": 0.3,"status":0,"status_message": "Found route between points","route_summary": {"total_distance":440,"total_time":85,"start_point":"","end_point":"de"},"route_geometry": "_ibE_ibE?gE?gE?gE?gE??","route_instructions": [["Head","",111,0,210,"0","NE",22.5],["Continue","bc",111,1,210,"1","NE",22.5],["Continue","cd",111,2,210,"2","NE",22.5],["Continue","de",111,3,210,"3","NE",22.5],["U-Turn","de",0,4,210,"4","NE",22.5]],"via_points":[],"transactionId": "OSRM Routing Engine JSON Descriptor (v0.3)"}

notice the last instruction: ["U-Turn","de",0,4,210,"4","NE",22.5]

(also, the first way is empty, but this is noted in a separate issue)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions