To a first approximation, that is correct.
However, it does bring up a broader issue that I've been meaning to mention, and that is that car routing with variable speed breaks the constant on-street speed assumption used in the A* heuristic. That heuristic is intended to be optimistic, but with car routing, if the router found a 120 km/h way, it could potentially get "ahead" of the heuristic. This is an issue now, and would not be made any worse by your suggestion (that is, I accept full responsibility for it), but I thought I should mention it since it's in the same code.
Matt
Dear all,
in one of my research projects we want to use dynamic (or adjustable) weights when searching through the graph. For instance, when a user travels by car, we want to use travel time values as reported through real-time traffic information by our local traffic authority. And in the future, we would like to use estimated travel times in our search.
From how I understand the OTP code, the RoutingContext::getSpeed(TraverseMode mode) is only used in PlainStreetEdge::doTraverse(State s0, RoutingRequest options, TraverseMode traverseMode), so it would be sufficient to do this call against an own "traffic status service" which provides a speed value that results in the current / or estimated travel time for the given edge... anything else should be transparent to OTP, is that correct?
Thanks for your help
Jens
--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-dev+unsub...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "OpenTripPlanner Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/opentripplanner-dev/hUOuu2McMss/unsubscribe.
To unsubscribe from this group and all its topics, send an email to opentripplanner...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-dev+unsubscribe...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "OpenTripPlanner Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/opentripplanner-dev/hUOuu2McMss/unsubscribe.
To unsubscribe from this group and all its topics, send an email to opentripplanner-dev+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.