You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
distance_limit without time_limit isn't that intuitive for the Isochrone API #1607
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.
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.
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
Activity
michaz commentedon May 22, 2019
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
pointlistformat.) But with isolines, you calculate the isoline for 6 minutes, or the isoline for 5 km. (That's why_limitisn'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.
michaz commentedon Apr 7, 2020
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
karussell commentedon Apr 7, 2020
Thanks, for fixing this and with the clear explanation the "strange" use case (weighting=fastest plus distance_limit) makes sense to me now too.