Travel modes
Choose where an alternative is used
Section titled “Choose where an alternative is used”| Position | Meaning | Request setting |
|---|---|---|
| First mile | Start → public transport | excludedFirstMileModes |
| Last mile | Public transport → destination | excludedLastMileModes |
| Direct | One mode for the journey | excludedUnimodalModes |
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.
Common transit values
Section titled “Common transit values”| JSON name | Binary enum value |
|---|---|
BUS | 2 |
WATER | 4 |
RAIL | 7 |
METRO | 8 |
TRAM | 10 |
Use these in excludeModes, such as excludeModes: ["RAIL"].
Alternative values
Section titled “Alternative values”| JSON name | Binary enum value | Options searched |
|---|---|---|
CAR | 0 | First mile and direct |
BICYCLE | 1 | First mile, last mile and direct |
WALK | 3 | Walking legs and walk-only journeys |
RENTED_BICYCLE | 4 | First mile, last mile and direct |
RENTED_SCOOTER | 5 | First mile, last mile and direct |
FLEX | 7 | Flexible-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