/tripkit/TripKitAndroid/com.skedgo.tripkit/TransportModeFilter/avoidTransportMode

avoidTransportMode

\ open fun avoidTransportMode(mode: String): Boolean

Used when routing to decide which transport modes to avoid, such as a route where public transit is returned from transportModes but you want to avoid ferries by specifying "pt_pub_ferry" as one to avoid. The default implementation does not avoid any modes.

Return

Return true if it should be avoided in routing, false if not.

Parameters

androidJvm

mode is a transport mode