Skip to content

Issue with calculating turn instructions with turn_costs=true and ch #1883

Closed

Description

@boldtrn

Something seems to be wrong with the instructions when setting turn_costs=true.

Just compare the two examples, with turn costs, without turn costs.

Screenshot from 2020-01-29 18-42-18
Screenshot from 2020-01-29 18-42-07

Activity

  1. easbar commented on Jan 29, 2020

    @easbar
    Member

    Did this use to work or did you never try before?

  2. boldtrn commented on Jan 29, 2020

    @boldtrn
    MemberAuthor

    Did this use to work or did you never try before?

    I never tried this before with turn costs and ch, so I don't know if it ever worked before, I guess it didn't. With regular turn costs and LM this used to work just fine. I just noticed this when working on #1047 when comparing results with my local instance and was wondering about the differences.

  3. changed the title [-]Issue with calculating turn instructions with turn_costs=true[/-] [+]Issue with calculating turn instructions with turn_costs=true and ch[/+] on Jan 29, 2020
  4. easbar commented on Jan 29, 2020

    @easbar
    Member

    Under what condition are you skipping the instructions?

  5. boldtrn commented on Jan 29, 2020

    @boldtrn
    MemberAuthor

    One important criteria for skipping instructions are the surrounding edges. If they seem like a turn alternative, then an instruction is created to make sure the is notified about the turn. If there are no alternatives an instruction can be skipped.

  6. boldtrn commented on Jan 29, 2020

    @boldtrn
    MemberAuthor

    Maybe I opened the issue too fast. I cannot reproduce the issue on my local master using:

    graph.flag_encoders: car|turn_costs=true
    prepare.ch.weightings: fastest
    prepare.ch.edge_based: edge_and_node
    

    I also tested with multiple vehicles:

    graph.flag_encoders: car|turn_costs=true,motorcycle|turn_costs=true
    prepare.ch.weightings: fastest
    prepare.ch.edge_based: edge_or_node
    

    But it does exist for the directions API. Maybe I am missing something? Or should we move this issue over to the directions API?

  7. karussell commented on Jan 29, 2020

    @karussell
    Member

    Yes, this is a deployment problem and our edge-based setup is a bit older (we had an issue that we need to fix)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions