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

Name Description
highSpeedTrain High-speed trains
intercityTrain Intercity/EuroCity trains
interRegionalTrain Inter-regional and fast trains
regionalTrain Regional and other trains
cityTrain City trains
bus Buses
ferry Boats/Ferries
subway Metros/Subways
lightRail Trams
privateBus Ordered services/Taxis
inclined Inclined/Funiculars
aerial Aerials/Cable cars
busRapid Rapid buses
monorail Monorails
flight Airplanes
walk Walk
car Car
bicycle Bicycle

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 Flavors & 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

Warning: 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.

results matching ""

    No results matching ""