action tfl_line_search { label: "Search for lines or routes matching the query string" provider: tfl method: GET path: "/Line/Search/{query}" encoding: json input: { type: "object" properties: { modes: { type: "array" items: { type: "string" } } query: { type: "string" } serviceTypes: { type: "array" items: { type: "string" enum: ["Regular", "Night"] } } } required: ["query"] additionalProperties: false } output: { type: "object" properties: { input: { type: "string" } searchMatches: { type: "array" items: { type: "object" properties: { id: { type: "string" } lat: { type: "number" format: "double" } lineId: { type: "string" } lineName: { type: "string" } lineRouteSection: { type: "array" items: { type: "object" properties: { destination: { type: "string" } direction: { type: "string" } fromStation: { type: "string" } routeId: { type: "integer" format: "int32" } serviceType: { type: "string" } toStation: { type: "string" } vehicleDestinationText: { type: "string" } } } } lon: { type: "number" format: "double" } matchedRouteSections: { type: "array" items: { type: "object" properties: { id: { type: "integer" format: "int32" } } } } matchedStops: { type: "array" items: { type: "object" properties: { accessibilitySummary: { type: "string" } direction: { type: "string" } hasDisruption: { type: "boolean" } icsId: { type: "string" } id: { type: "string" } lat: { type: "number" format: "double" } lines: { type: "array" items: { type: "object" properties: { crowding: { type: "object" properties: { passengerFlows: { type: "object" additionalProperties: true } trainLoadings: { 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" } } } } lon: { type: "number" format: "double" } modes: { type: "array" items: { type: "string" } } name: { type: "string" } parentId: { type: "string" } routeId: { type: "integer" format: "int32" } stationId: { type: "string" } status: { type: "boolean" } stopLetter: { type: "string" } stopType: { type: "string" } topMostParentId: { type: "string" } towards: { type: "string" } url: { type: "string" } zone: { type: "string" } } } } mode: { type: "string" } name: { type: "string" } url: { type: "string" } } } } } } }