TransferConstraint Data Type

This class holds transfer constraint information.

The class is immutable.

Implemented Interfaces
Serializable
Properties
name data type constraints description
priority TransferPriority  
staySeated boolean required Also known as interlining of GTFS trips with the same block id.
guaranteed boolean required
facilitated boolean required A facilitated transfer is allowed even if there might not be enough time to walk or if the alight-slack or board-slack is too tight. We ignore slack for facilitated transfers.

This is an aggregated field, which encapsulates an OTP specific rule. A facilitated transfer is either stay-seated or guaranteed. High priority transfers are not facilitated.

notAllowed boolean required Return true if the constrained transfer is not allowed between the two routes. Note! If a constraint only apply to specific trips, then the RaptorConstrainedTripScheduleBoardingSearch is reponsible for NOT returning the NOT-ALLOWED transfer, and finding the next ALLOWED trip.
regularTransfer boolean required Returns true if this is a regular transfer without any constrains.
maxWaitTime number required Maximum time after scheduled departure time the connecting transport is guarantied to wait for the delayed trip.

THIS IS NOT CONSIDERED IN RAPTOR. OTP relies on real-time data for this, so if the "from" vehicle is delayed, then the real time system is also responsible for propagating the delay onto the "to" trip.

minTransferTime number required The min-transfer-time specify lower bound for the transfer time. org.opentripplanner.routing.algorithm.raptoradapter.transit.constrainedtransfer.ConstrainedBoardingSearch uses this to make sure at least the amount of seconds specified is available to do the transfer. If the path transfer takes more time than specified by the min-transfer-time then the path transfer is used. Normal slack parameters are added to the path transfer, but not to the min-transfer-time.
minTransferTimeSet boolean required

Example

{
  "priority" : "RECOMMENDED",
  "staySeated" : true,
  "guaranteed" : true,
  "facilitated" : true,
  "notAllowed" : true,
  "regularTransfer" : true,
  "maxWaitTime" : 12345,
  "minTransferTime" : 12345,
  "minTransferTimeSet" : true
}