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
The current routing engine can not only give the shortest path but also a guarantee that the second shortest path is at least x meters longer. If we assume that the underlying geometry has not changed (and of course the target is still the same), we can use this value to determine if routing is actually necessary.
The idea is to store the previous position of the agent and the gap to the second longest walk x. We can then calculate how much the distance to the next point in the current shortest path decreased (let's say s) and we know the absolute distance traveled since the last routing (let's say d). So if s + x > d we don't need to do a routing.
The text was updated successfully, but these errors were encountered:
The current routing engine can not only give the shortest path but also a guarantee that the second shortest path is at least x meters longer. If we assume that the underlying geometry has not changed (and of course the target is still the same), we can use this value to determine if routing is actually necessary.
The idea is to store the previous position of the agent and the gap to the second longest walk x. We can then calculate how much the distance to the next point in the current shortest path decreased (let's say s) and we know the absolute distance traveled since the last routing (let's say d). So if s + x > d we don't need to do a routing.
The text was updated successfully, but these errors were encountered: