SearchDirection Data Type

This enum describe the direction which a search is performed.

The normal way is to search FORWARD from the origin to the destination.

Set search direction to REVERSE to performed a search from the destination to the origin. This will traverse the transit graph backwards in time. This is used in Raptor to produce heuristics, and is normally not something you would like to do unless you are testing or analyzing. This should not be confused with Range Raptor iterations> which step-backward-in-time (start with the last minute of the search window), but searches FORWARD. REVERSE search is supported by the current implementation of RangeRaptor.

In the Raptor code we will refer to the origin and and destination assuming the search direction is FORWARD.

Values
value description
FORWARD Search from origin to destination, forward in time.
REVERSE Search from destination to origin, backward in time.