This index is temporary to help creating a fixed list of stops (by index), a reverse map
of indexes by stop, and to create a list of stop indexes for each trip pattern. It
make sure the stops
and indexByStop
have the same order.
Raptor uses an integer index to reference stops. This is not the stop id, but just a sequence number - an index. Hence we don“t care about the order - as long as the order does not change. Raptor reference stops as integers for performance reasons, it never accesses stops, it does not need to. The returned itineraries from Raptor contain stop indexes, not references to stops, so OTP must maintain the stop index.
The index also holds a pre-calculated board/alight cost for each stop used by Raptor during routing.
The scope of instances of this class is limited to the mapping process, the final state is stored in the TransitLayer.
name | data type | description |
---|---|---|
stopBoardAlightCosts | array of number |
Example
{ "stopBoardAlightCosts" : [ 12345, 12345 ] }