Skip to content

alternative route has detour for turn_costs=true #2101

Closed

Description

@karussell

For this route there is a strange detour circle in the middle which disappears for turn_costs=false.

image

Activity

  1. changed the title [-]alternative route detour if turn_costs=true[/-] [+]alternative route has detour for turn_costs=true[/+] on Jul 29, 2020
  2. self-assigned this
    on Aug 12, 2020
  3. michaz commented on Aug 12, 2020

    @michaz
    Member

    Ahhh, right. We need to concatenate "edge-based paths" properly.

    Suppose we have a non-shortest candidate path s----u-v-w----t. Now we want a concatenation of two shortest paths via v. In node-based search, we take concat(s->v, v->t). In edge-based, we were taking concat(s->u-v, v-w->t). But that can be an ugly path (see above), because maybe from v-w we need to get back via u-v again.

    Instead, we want concat(s->u-v, u-v->t). Concatenating "by edge", of course. (Removing the duplicate u-v edge.)

  4. added this to the 2.0 milestone on Aug 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions