Routing modes

This page is intended as an exhaustive listing of what OTP's routing engine is capable of and therefore documents internal names. Since OTP has multiple APIs where each works slightly differently, please consult your API documentation on how to select the appropriate mode.

Street modes

Routing modes on streets, including walking, biking, driving, and car-sharing.

BIKE

Cycling for the entirety of the route or taking a bicycle onto the public transport and cycling from the arrival station to the destination.

BIKE_RENTAL

Taking a rented, shared-mobility bike for part or the entirety of the route.

Prerequisite: Vehicle or station location need to be added to OTP from dynamic data feeds. See Configuring GBFS on how to add one.

BIKE_TO_PARK

Leaving the bicycle at the departure station and walking from the arrival station to the destination. This mode needs to be combined with at least one transit mode otherwise it behaves like an ordinary bicycle journey. Prerequisite: Bicycle parking stations present in the OSM file and visible to OTP by enabling the property staticBikeParkAndRide during graph build.

CAR

Driving your own car the entirety of the route. This can be combined with transit, where will return routes with a Kiss & Ride component. This means that the car is not parked in a permanent parking area but rather the passenger is dropped off (for example, at an airport) and the driver continues driving the car away from the drop off location.

CAR_HAILING

Using a car hailing app like Uber or Lyft to get to a train station or all the way to the destination.

See the sandbox documentation on how to configure it.

CAR_PICKUP

Walking to a pickup point along the road, driving to a drop-off point along the road, and walking the rest of the way.
This can include various taxi-services or kiss & ride.

CAR_RENTAL

Walk to a car rental point, drive to a car rental drop-off point and walk the rest of the way. This can include car rental at fixed locations or free-floating services.

Prerequisite: Vehicle or station location need to be added to OTP from dynamic data feeds. See Configuring GBFS on how to add one.

CAR_TO_PARK

Driving a car to the park-and-ride facilities near a station and taking publictransport. This mode needs to be combined with at least one transit mode otherwise, it behaves like an ordinary car journey. Prerequisite: Park-and-ride areas near the stations need to be present in the OSM input file.

FLEXIBLE

Encompasses all types of on-demand and flexible transportation for example GTFS Flex or NeTex Flexible Stop Places.

SCOOTER_RENTAL

Walking to a scooter rental point, riding a scooter to a scooter rental drop-off point, and walking the rest of the way. This can include scooter rental at fixed locations or free-floating services.

Prerequisite: Vehicle or station location need to be added to OTP from dynamic data feeds. See Configuring GBFS on how to add one.

WALK

Walking some or all of the way of the route.

Transit modes

Routing modes for transit, including rail, bus, ferry, etc. Equivalent to GTFS route_type or to NeTEx TransportMode.

AIRPLANE

Taking an airplane

BUS

Used for short- and long-distance bus routes.

CABLE_CAR

Used for street-level cable cars where the cable runs beneath the car.

CARPOOL

Private car trips shared with others.

This is currently not specified in GTFS so we use the mode type values 1500-1560 which are in the range of private taxis.

COACH

Used for long-distance bus routes.

FERRY

Used for short- and long-distance boat service.

FUNICULAR

Used for any rail system that moves on steep inclines with a cable traction system.

GONDOLA

Gondola or suspended cable car. Typically used for aerial cable cars where the car is suspended from the cable.

MONORAIL

Used for any rail system that runs on a single rail.

RAIL

Used for intercity or long-distance travel.

SUBWAY

Subway or Metro, used for any underground rail system within a metropolitan area.

TAXI

Using a taxi service

TRAM

Tram, streetcar or light rail. Used for any light rail or street level system within a metropolitan area.

TROLLEYBUS

Used for trolleybus systems which draw power from overhead wires using poles on the roof of the vehicle.