action tfl_journey_journey_results { label: "Perform a Journey Planner search from the parameters specified in simple types" provider: tfl method: GET path: "/Journey/JourneyResults/{from}/to/{to}" encoding: json input: { type: "object" properties: { accessibilityPreference: { type: "array" items: { type: "string" enum: ["NoRequirements", "NoSolidStairs", "NoEscalators", "NoElevators", "StepFreeToVehicle", "StepFreeToPlatform"] } } adjustment: { type: "string" } alternativeCycle: { type: "boolean" } alternativeWalking: { type: "boolean" } applyHtmlMarkup: { type: "boolean" } bikeProficiency: { type: "array" items: { type: "string" enum: ["Easy", "Moderate", "Fast"] } } calcOneDirection: { type: "boolean" } cyclePreference: { type: "string" enum: ["None", "LeaveAtStation", "TakeOnTransport", "AllTheWay", "CycleHire"] } date: { type: "string" } from: { type: "string" } fromName: { type: "string" } journeyPreference: { type: "string" enum: ["LeastInterchange", "LeastTime", "LeastWalking"] } maxTransferMinutes: { type: "string" } maxWalkingMinutes: { type: "string" } mode: { type: "array" items: { type: "string" } } nationalSearch: { type: "boolean" } routeBetweenEntrances: { type: "boolean" } taxiOnlyTrip: { type: "boolean" } time: { type: "string" } timeIs: { type: "string" enum: ["Arriving", "Departing"] } to: { type: "string" } toName: { type: "string" } useMultiModalCall: { type: "boolean" } useRealTimeLiveArrivals: { type: "boolean" } via: { type: "string" } viaName: { type: "string" } walkingOptimization: { type: "boolean" } walkingSpeed: { type: "string" enum: ["Slow", "Average", "Fast"] } } required: ["from", "to"] additionalProperties: false } output: { type: "object" description: "A DTO representing a list of possible journeys." properties: { cycleHireDockingStationData: { type: "object" properties: { destinationId: { type: "string" } destinationNumberOfBikes: { type: "integer" format: "int32" } destinationNumberOfEmptySlots: { type: "integer" format: "int32" } originId: { type: "string" } originNumberOfBikes: { type: "integer" format: "int32" } originNumberOfEmptySlots: { type: "integer" format: "int32" } } } journeyVector: { type: "object" properties: { from: { type: "string" } to: { type: "string" } uri: { type: "string" } via: { type: "string" } } } journeys: { type: "array" items: { type: "object" description: "Object that represents an end to end journey (see schematic)." properties: { arrivalDateTime: { type: "string" format: "date-time" } duration: { type: "integer" format: "int32" } fare: { type: "object" properties: { caveats: { type: "array" items: { type: "object" properties: { text: { type: "string" } type: { type: "string" } } } } fares: { type: "array" items: { type: "object" properties: { chargeLevel: { type: "string" } chargeProfileName: { type: "string" } cost: { type: "integer" format: "int32" } highZone: { type: "integer" format: "int32" } isHopperFare: { type: "boolean" } lowZone: { type: "integer" format: "int32" } offPeak: { type: "integer" format: "int32" } peak: { type: "integer" format: "int32" } taps: { type: "array" items: { type: "object" properties: { atcoCode: { type: "object" additionalProperties: true } tapDetails: { type: "object" additionalProperties: true } } } } } } } totalCost: { type: "integer" format: "int32" } } } legs: { type: "array" items: { type: "object" properties: { arrivalPoint: { type: "object" description: "Represents a point located at a latitude and longitude using the WGS84 co-ordinate system." properties: { lat: { type: "number" format: "double" description: "WGS84 latitude of the location." } lon: { type: "number" format: "double" description: "WGS84 longitude of the location." } } } arrivalTime: { type: "string" format: "date-time" } departurePoint: { type: "object" additionalProperties: true } departureTime: { type: "string" format: "date-time" } disruptions: { type: "array" items: { type: "object" description: "Represents a disruption to a route within the transport network." properties: { additionalInfo: { type: "string" description: "Gets or sets the additionaInfo of this disruption." } affectedRoutes: { type: "array" description: "Gets or sets the routes affected by this disruption" items: { type: "object" additionalProperties: true } } affectedStops: { type: "array" description: "Gets or sets the stops affected by this disruption" items: { type: "object" additionalProperties: true } } category: { type: "string" description: "Gets or sets the category of this dispruption." enum: ["Undefined", "RealTime", "PlannedWork", "Information", "Event", "Crowding", "StatusAlert"] } categoryDescription: { type: "string" description: "Gets or sets the description of the category." } closureText: { type: "string" description: "Text describing the closure type" } created: { type: "string" format: "date-time" description: "Gets or sets the date/time when this disruption was created." } description: { type: "string" description: "Gets or sets the description of this disruption." } lastUpdate: { type: "string" format: "date-time" description: "Gets or sets the date/time when this disruption was last updated." } summary: { type: "string" description: "Gets or sets the summary of this disruption." } type: { type: "string" description: "Gets or sets the disruption type of this dispruption." } } } } distance: { type: "number" format: "double" } duration: { type: "integer" format: "int32" } hasFixedLocations: { type: "boolean" } instruction: { type: "object" properties: { detailed: { type: "string" } steps: { type: "array" items: { type: "object" properties: { cumulativeDistance: { type: "object" additionalProperties: true } cumulativeTravelTime: { type: "object" additionalProperties: true } description: { type: "object" additionalProperties: true } descriptionHeading: { type: "object" additionalProperties: true } distance: { type: "object" additionalProperties: true } latitude: { type: "object" additionalProperties: true } longitude: { type: "object" additionalProperties: true } pathAttribute: { type: "object" additionalProperties: true } skyDirection: { type: "object" additionalProperties: true } skyDirectionDescription: { type: "object" additionalProperties: true } streetName: { type: "object" additionalProperties: true } trackType: { type: "object" additionalProperties: true } turnDirection: { type: "object" additionalProperties: true } } } } summary: { type: "string" } } } interChangeDuration: { type: "string" } interChangePosition: { type: "string" } isDisrupted: { type: "boolean" } mode: { type: "object" properties: { crowding: { type: "object" properties: { passengerFlows: { type: "array" description: "Busiest times at a station (static information)" items: { type: "object" additionalProperties: true } } trainLoadings: { type: "array" description: "Train Loading on a scale 1-6, 1 being \"Very quiet\" and 6 being \"Exceptionally busy\" (static information)" items: { type: "object" additionalProperties: true } } } } fullName: { type: "string" } id: { type: "string" } motType: { type: "string" } name: { type: "string" } network: { type: "string" } routeType: { type: "string" enum: ["Unknown", "All", "Cycle Superhighways", "Quietways", "Cycleways", "Mini-Hollands", "Central London Grid", "Streetspace Route"] } status: { type: "string" enum: ["Unknown", "All", "Open", "In Progress", "Planned", "Planned - Subject to feasibility and consultation.", "Not Open"] } type: { type: "string" } uri: { type: "string" } } } obstacles: { type: "array" items: { type: "object" properties: { incline: { type: "string" } position: { type: "string" } stopId: { type: "integer" format: "int32" } type: { type: "string" } } } } path: { type: "object" properties: { elevation: { type: "array" items: { type: "object" properties: { distance: { type: "object" additionalProperties: true } endLat: { type: "object" additionalProperties: true } endLon: { type: "object" additionalProperties: true } gradient: { type: "object" additionalProperties: true } heightFromPreviousPoint: { type: "object" additionalProperties: true } startLat: { type: "object" additionalProperties: true } startLon: { type: "object" additionalProperties: true } } } } lineString: { type: "string" } stopPoints: { type: "array" items: { type: "object" additionalProperties: true } } } } plannedWorks: { type: "array" items: { type: "object" properties: { createdDateTime: { type: "string" format: "date-time" } description: { type: "string" } id: { type: "string" } lastUpdateDateTime: { type: "string" format: "date-time" } } } } routeOptions: { type: "array" items: { type: "object" properties: { direction: { type: "string" description: "The direction of the route, i.e. outbound or inbound." } directions: { type: "array" items: { type: "object" additionalProperties: true } } id: { type: "string" description: "The Id of the route" } lineIdentifier: { type: "object" additionalProperties: true } name: { type: "string" description: "Name such as \"72\"" } } } } scheduledArrivalTime: { type: "string" format: "date-time" } scheduledDepartureTime: { type: "string" format: "date-time" } speed: { type: "string" } } } } startDateTime: { type: "string" format: "date-time" } } } } lines: { type: "array" items: { type: "object" properties: { created: { type: "string" format: "date-time" } crowding: { type: "object" additionalProperties: true } disruptions: { type: "array" items: { type: "object" additionalProperties: true } } id: { type: "string" } lineStatuses: { type: "array" items: { type: "object" properties: { created: { type: "string" format: "date-time" } disruption: { type: "object" additionalProperties: true } id: { type: "integer" format: "int32" } lineId: { type: "string" } modified: { type: "string" format: "date-time" } reason: { type: "string" } statusSeverity: { type: "integer" format: "int32" } statusSeverityDescription: { type: "string" } validityPeriods: { type: "array" items: { type: "object" description: "Represents a period for which a planned works is valid." properties: { fromDate: { type: "string" format: "date-time" description: "Gets or sets the start date." } isNow: { type: "boolean" description: "If true is a realtime status rather than planned or info" } toDate: { type: "string" format: "date-time" description: "Gets or sets the end date." } } } } } } } modeName: { type: "string" } modified: { type: "string" format: "date-time" } name: { type: "string" } routeSections: { type: "array" items: { type: "object" description: "Description of a Route used in Route search results." properties: { destination: { type: "string" description: "The Id (NaPTAN code) or the Destination StopPoint" } destinationName: { type: "string" description: "The name of the Destination StopPoint" } direction: { type: "string" description: "Inbound or Outbound" } name: { type: "string" description: "Name such as \"72\"" } originationName: { type: "string" description: "The name of the Origin StopPoint" } originator: { type: "string" description: "The Id (NaPTAN code) of the Origin StopPoint" } routeCode: { type: "string" description: "The route code" } serviceType: { type: "string" description: "Regular or Night" } validFrom: { type: "string" format: "date-time" description: "The DateTime that the Service containing this Route is valid from." } validTo: { type: "string" format: "date-time" description: "The DateTime that the Service containing this Route is valid until." } } } } serviceTypes: { type: "array" items: { type: "object" properties: { name: { type: "string" } uri: { type: "string" } } } } } } } recommendedMaxAgeMinutes: { type: "integer" format: "int32" } searchCriteria: { type: "object" properties: { dateTime: { type: "string" format: "date-time" } dateTimeType: { type: "string" enum: ["Arriving", "Departing"] } timeAdjustments: { type: "object" properties: { earlier: { type: "object" properties: { date: { type: "string" } time: { type: "string" } timeIs: { type: "string" } uri: { type: "string" } } } earliest: { type: "object" additionalProperties: true } later: { type: "object" additionalProperties: true } latest: { type: "object" additionalProperties: true } } } } } stopMessages: { type: "array" items: { type: "string" } } } } }