Skip to content

Travel modes

PositionMeaningRequest setting
First mileStart → public transportexcludedFirstMileModes
Last milePublic transport → destinationexcludedLastMileModes
DirectOne mode for the journeyexcludedUnimodalModes

To keep car alternatives out of a journey, add CAR to the first-mile and direct exclusion lists. To keep rental bikes available at the destination, leave RENTED_BICYCLE out of the last-mile exclusions.

JSON nameBinary enum value
BUS2
WATER4
RAIL7
METRO8
TRAM10

Use these in excludeModes, such as excludeModes: ["RAIL"].

JSON nameBinary enum valueOptions searched
CAR0First mile and direct
BICYCLE1First mile, last mile and direct
WALK3Walking legs and walk-only journeys
RENTED_BICYCLE4First mile, last mile and direct
RENTED_SCOOTER5First mile, last mile and direct
FLEX7Flexible-service candidates when enabled

I’m Planner also compares combinations such as an owned bike to the station and a rented bike at the destination. The returned legs show the modes used for each journey.

All mode values in Modes.proto · OV-fiets example · Bravoflex example