Skip to content

turn_costs handling in /isochrone #1967

Closed

Description

@easbar

Recently we fixed the handling of turn_costs for the /isochrone endpoint on the 1.0-pre32-fixes, but these changes also need to be ported to current master.

Activity

  1. added this to the 1.0 milestone on Mar 26, 2020
  2. easbar commented on Mar 26, 2020

    @easbar
    MemberAuthor

    We should probably do this parameter handling in ProfileResolver (at least starting with #1958), then there should no longer be need to do this in every Resource.

  3. easbar commented on Mar 28, 2020

    @easbar
    MemberAuthor

    So far we only support node-based for isochrones. So we either have to make sure there is a profile without turn costs or we make sure the isochrone algorithm (which is node-based) ignores turn costs or we use the __disable_turn_costs_for_lm_preparation flag in GraphHopper#createWeighting (and probably rename it back to __disable_turn_costs). See also #1965.

  4. easbar commented on Mar 29, 2020

    @easbar
    MemberAuthor

    Assuming isochrone cannot be run edge-based (as is currently the case), whats better (or less ugly):

    • it does not matter whether or not a profile has turn costs and the turn costs are ignored for /isochrone even when turn_costs: true is set in the profile

    • /isochrone does not allow profiles with turn_costs: true, because its not implemented. So to make use of /isochrone we always have to add a profile with turn_costs: false and potentially we have to add a copy with turn_costs: false for every profile we want to use to make it also work for /isochrone.

    If both options are too ugly we should consider implementing edge-based for isochrones...

    I think I prefer the first option for now and its implemented in #1975

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions