GuidesAPI Reference
Guides

Available modes of transport

Available modes of transport

The modes of transports are distinct types of vehicle with which you can move between origin and destination. They can be private such as you own car or public like a train or bus which is operated by your local transport authority.

Currently a total of thirteen (13) modes of transport are supported, with up to twenty-three (23) unique modes. The following table shows the full list of the modes of transport that you can request with the Intermodal Routing API v8. Table 1. List of names of modes of transport and corresponding description

NameDescription
highSpeedTrainHigh-speed trains
intercityTrainIntercity/EuroCity trains
interRegionalTrainInter-regional and fast trains
regionalTrainRegional and other trains
cityTrainCity trains
busBuses
ferryBoats/Ferries
subwayMetros/Subways
lightRailTrams
privateBusOrdered services/Taxis
inclinedInclined/Funiculars
aerialAerials/Cable cars
busRapidRapid buses
monorailMonorails
flightAirplanes
carCar
bicycleBicycle

You can enable/disable specific modes of transport for each of the transport types by specifying the <transport-type>[modes]= parameter in your intermodal routing request.

By default, all modes are supported if this parameter is omitted in a request.

For more information on the transport types of the Intermodal Routing API v8, see the Intermodal Services & Transport Types section.

The <transport-type>[modes]= request parameter takes a comma-separated list of modes in two possible formats:

  • name_1,name_2,...,name_N - enable specified modes and disable everything else
  • -name_1,-name_2,...,-name_N - disable specified modes and enable everything else

Examples

The following examples show how to include/exclude modes for different transport types:

  • Intercity/EuroCity trains and trams only for transit transport types:
    • transit[modes]=intercityTrain,lightRail
  • All types except bus and rapid bus for transit transport types:
    • transit[modes]=-bus,-busRapid
  • All modes except car for the transport types vehicle or rented:
    • vehicle[modes]=-car
    • rented[modes]=-car
📘

:Invalid request It is not allowed to enable and disable modes at the same time, for example:

name_1,-name_2,name_3,...,-name_N

This would render your request invalid and the API would return an error.