Skip to content

distance_limit without time_limit isn't that intuitive for the Isochrone API #1607

Closed

Description

@karussell

Currently we allow a distance_limit for the Isochrone API. This was good for use cases like "calculate a delivery area but roughly base it on distance not on the time". But explaining this property, i.e. what this it means in the time-based Isochrone API is difficult.

If you see distance_limit as an additional constraint as suggested from @oblonski (additionally to the time_limit) it makes more sense. With time_limit=very_big_number converts into the current situation.

Activity

  1. michaz commented on May 22, 2019

    @michaz
    Member

    Careful here: Those aren't constraints when talking about isolines. They're only something like constraints when you calculate the shortest path tree, and at some point you stop calculating. (The pointlist format.) But with isolines, you calculate the isoline for 6 minutes, or the isoline for 5 km. (That's why _limit isn't a very accurate name.)

    I think it makes most sense the way it is (apart from the name): You specify either a distance (or several) or a time (or several).

    Both are well defined, no matter if you use time or distance as the routing weight. That's an independent decision.

  2. michaz commented on Apr 7, 2020

    @michaz
    Member

    See also #1979. The a) objective function, b) the search limit, and c) the function we want the isoline for, are (potentially) three different things.

    a) directs the search. We get different values for c) depending on how a) is set.
    b) needs to be high enough so a value for c) is available at every point
    c) determines where the polygon(s) go through the point set

  3. karussell commented on Apr 7, 2020

    @karussell
    MemberAuthor

    Thanks, for fixing this and with the clear explanation the "strange" use case (weighting=fastest plus distance_limit) makes sense to me now too.

  4. added this to the 1.0 milestone on Apr 7, 2020
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions