Skip to content

incorrect leg_distance entries if two stops are identical #2915

Closed

Description

@karussell

If there are two identical stops the number of leg entries in the leg_distance (or leg_time) array will be incorrect because there is no separate edge created between these identical stops.

E.g. in RouteResourceClientHCTest.testWaypointIndicesAndLegDetails you can add new GHPoint(42.495611, 1.498368) to the point list and there will be an error IndexOutOfBoundsException: Index 8 out of bounds for length 8 because the entry number of leg_distance is 8 and not 9 as it should be:

assertEquals(9, path.getPathDetails().get("leg_distance").size());

Activity

  1. added a commit that references this issue on Jan 9, 2024
    7acfede
  2. added a commit that references this issue on Feb 22, 2024
    99e9ba3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions