v1

latestSwagger 2.02026-07-1384122135.6 KB
Journey

Perform a Journey Planner search from the parameters specified in simple types

get/Journey/JourneyResults/{from}/to/{to}

Path parameters

fromstring required

Origin of the journey. Can be WGS84 coordinates expressed as "lat,long", a UK postcode, a Naptan (StopPoint) id, an ICS StopId, or a free-text string (will cause disambiguation unless it exactly matches a point of interest name).

tostring required

Destination of the journey. Can be WGS84 coordinates expressed as "lat,long", a UK postcode, a Naptan (StopPoint) id, an ICS StopId, or a free-text string (will cause disambiguation unless it exactly matches a point of interest name).

Query parameters

viastring

Travel through point on the journey. Can be WGS84 coordinates expressed as "lat,long", a UK postcode, a Naptan (StopPoint) id, an ICS StopId, or a free-text string (will cause disambiguation unless it exactly matches a point of interest name).

nationalSearchboolean

Does the journey cover stops outside London? eg. "nationalSearch=true"

datestring

The date must be in yyyyMMdd format

timestring

The time must be in HHmm format

timeIs'Arriving' | 'Departing'

Does the time given relate to arrival or leaving time? Possible options: "departing" | "arriving"

journeyPreference'LeastInterchange' | 'LeastTime' | 'LeastWalking'

The journey preference eg possible options: "leastinterchange" | "leasttime" | "leastwalking"

modestring[]

The mode must be a comma separated list of modes. eg possible options: "public-bus,overground,train,tube,coach,dlr,cablecar,tram,river,walking,cycle"

accessibilityPreferencestring[]

The accessibility preference must be a comma separated list eg. "noSolidStairs,noEscalators,noElevators,stepFreeToVehicle,stepFreeToPlatform"

fromNamestring

An optional name to associate with the origin of the journey in the results.

toNamestring

An optional name to associate with the destination of the journey in the results.

viaNamestring

An optional name to associate with the via point of the journey in the results.

maxTransferMinutesstring

The max walking time in minutes for transfer eg. "120"

maxWalkingMinutesstring

The max walking time in minutes for journeys eg. "120"

walkingSpeed'Slow' | 'Average' | 'Fast'

The walking speed. eg possible options: "slow" | "average" | "fast".

cyclePreference'None' | 'LeaveAtStation' | 'TakeOnTransport' | 'AllTheWay' | 'CycleHire'

The cycle preference. eg possible options: "allTheWay" | "leaveAtStation" | "takeOnTransport" | "cycleHire"

adjustmentstring

Time adjustment command. eg possible options: "TripFirst" | "TripLast"

bikeProficiencystring[]

A comma separated list of cycling proficiency levels. eg possible options: "easy,moderate,fast"

alternativeCycleboolean

Option to determine whether to return alternative cycling journey

alternativeWalkingboolean

Option to determine whether to return alternative walking journey

applyHtmlMarkupboolean

Flag to determine whether certain text (e.g. walking instructions) should be output with HTML tags or not.

useMultiModalCallboolean

A boolean to indicate whether or not to return 3 public transport journeys, a bus journey, a cycle hire journey, a personal cycle journey and a walking journey

walkingOptimizationboolean

A boolean to indicate whether to optimize journeys using walking

taxiOnlyTripboolean

A boolean to indicate whether to return one or more taxi journeys. Note, setting this to true will override "useMultiModalCall".

routeBetweenEntrancesboolean

A boolean to indicate whether public transport routes should include directions between platforms and station entrances.

useRealTimeLiveArrivalsboolean

A boolean to indicate if we want to receive real time live arrivals data where available.

calcOneDirectionboolean

A boolean to make Journey Planner calculate journeys in one temporal direction only. In other words, only calculate journeys after the 'depart' time, or before the 'arrive' time. By default, the Journey Planner engine (EFA) calculates journeys in both temporal directions.

includeAlternativeRoutesboolean

A boolean to make Journey Planner return alternative routes. Alternative routes are calculated by removing one or more lines included in the fastest route and re-calculating. By default, these journeys will not be returned.

overrideMultiModalScenariointeger

An optional integer to indicate what multi modal scenario we want to use.

combineTransferLegsboolean

A boolean to indicate whether walking leg to station entrance and walking leg from station entrance to platform should be combined. Defaults to true

Response

OK

stopMessagesstring[]
recommendedMaxAgeMinutesinteger