Flexible transit routing

Contact Info


OTP 2.1


To enable this turn on FlexRouting as a feature in otp-config.json.

The GTFS feeds should conform to the GTFS-Flex v2.1 draft


This features allows a limited number of config options (currently just one). To change the configuration, add the following to router-config.json.

  "flex": {
    "maxTransferDurationSeconds": 300

Config parameters


Default: 300

How long should a passenger be allowed to walk after getting out of a flex vehicle and transferring to a flex or transit one.

This was mainly introduced to improve performance which is also the reason for not using the existing value with the same name: fixed schedule transfers are computed during the graph build but flex ones are calculated at request time and are more sensitive to slowdown.

A lower value means that the routing is faster.