PlanTransitModePreferenceInput Input Object
Transit mode and a reluctance associated with it.
Fields
#
mode
Transit mode that could be (but doesn't have to be) used in an itinerary.
replacement
If present and not null, further limits the transit mode selection. A transit trip matches a PlanTransitModePreferenceInput if the mandatory TransitMode field mode matches. If replacement is REQUIRED, the trip must also be a replacement. If replacement is FORBIDDEN, the trip must not be a replacement. If replacement is FEATURE_IGNORED or missing, it does not matter if the trip is a replacement or not. Whether a leg is a replacement is recognized both by the NeTEx submode and the GTFS extended type, depending on the data source. Note that a bus replacing a train has mode: BUS, replacement: true, so it matches a query with mode: BUS, replacement: REQUIRED and mode: BUS, replacement: FEATURE_IGNORED, but it does not match mode: TRAIN with any replacement options. So to get both trains and buses replacing them, but no other buses, query [(mode: TRAIN), (mode: BUS, replacement: REQUIRED)].
PlanTransferMode