UNPKG

tfl-ts

Version:

🚇 Fully-typed TypeScript client for Transport for London (TfL) API • Zero dependencies • Auto-generated types • Real-time arrivals • Journey planning • Universal compatibility

152 lines (151 loc) • 5.98 kB
export declare const TRAVELTIMES_DATA: { readonly section: "TravelTimes"; readonly endpoints: readonly [{ readonly path: "/TravelTimes/overlay/{z}/mapcenter/{mapCenterLat}/{mapCenterLon}/pinlocation/{pinLat}/{pinLon}/dimensions/{width}/{height}"; readonly method: "GET"; readonly summary: "Gets the TravelTime overlay."; readonly parameters: readonly [{ readonly name: "z"; readonly type: "number"; readonly required: true; readonly description: "The zoom level."; }, { readonly name: "pinLat"; readonly type: "number"; readonly required: true; readonly description: "The latitude of the pin."; }, { readonly name: "pinLon"; readonly type: "number"; readonly required: true; readonly description: "The longitude of the pin."; }, { readonly name: "mapCenterLat"; readonly type: "number"; readonly required: true; readonly description: "The map center latitude."; }, { readonly name: "mapCenterLon"; readonly type: "number"; readonly required: true; readonly description: "The map center longitude."; }, { readonly name: "scenarioTitle"; readonly type: "string"; readonly required: true; readonly description: "The title of the scenario."; }, { readonly name: "timeOfDayId"; readonly type: "string"; readonly required: true; readonly description: "The id for the time of day (AM/INTER/PM)"; }, { readonly name: "modeId"; readonly type: "string"; readonly required: true; readonly description: "The id of the mode."; }, { readonly name: "width"; readonly type: "number"; readonly required: true; readonly description: "The width of the requested overlay."; }, { readonly name: "height"; readonly type: "number"; readonly required: true; readonly description: "The height of the requested overlay."; }, { readonly name: "direction"; readonly type: "string"; readonly required: true; readonly description: "The direction of travel."; }, { readonly name: "travelTimeInterval"; readonly type: "number"; readonly required: true; readonly description: "The total minutes between the travel time bands"; }]; readonly returnType: "Object"; readonly deprecated: false; readonly tags: readonly ["TravelTime"]; }, { readonly path: "/TravelTimes/compareOverlay/{z}/mapcenter/{mapCenterLat}/{mapCenterLon}/pinlocation/{pinLat}/{pinLon}/dimensions/{width}/{height}"; readonly method: "GET"; readonly summary: "Gets the TravelTime overlay."; readonly parameters: readonly [{ readonly name: "z"; readonly type: "number"; readonly required: true; readonly description: "The zoom level."; }, { readonly name: "pinLat"; readonly type: "number"; readonly required: true; readonly description: "The latitude of the pin."; }, { readonly name: "pinLon"; readonly type: "number"; readonly required: true; readonly description: "The longitude of the pin."; }, { readonly name: "mapCenterLat"; readonly type: "number"; readonly required: true; readonly description: "The map center latitude."; }, { readonly name: "mapCenterLon"; readonly type: "number"; readonly required: true; readonly description: "The map center longitude."; }, { readonly name: "scenarioTitle"; readonly type: "string"; readonly required: true; readonly description: "The title of the scenario."; }, { readonly name: "timeOfDayId"; readonly type: "string"; readonly required: true; readonly description: "The id for the time of day (AM/INTER/PM)"; }, { readonly name: "modeId"; readonly type: "string"; readonly required: true; readonly description: "The id of the mode."; }, { readonly name: "width"; readonly type: "number"; readonly required: true; readonly description: "The width of the requested overlay."; }, { readonly name: "height"; readonly type: "number"; readonly required: true; readonly description: "The height of the requested overlay."; }, { readonly name: "direction"; readonly type: "string"; readonly required: true; readonly description: "The direction of travel."; }, { readonly name: "travelTimeInterval"; readonly type: "number"; readonly required: true; readonly description: "The total minutes between the travel time bands"; }, { readonly name: "compareType"; readonly type: "string"; readonly required: true; }, { readonly name: "compareValue"; readonly type: "string"; readonly required: true; }]; readonly returnType: "Object"; readonly deprecated: false; readonly tags: readonly ["TravelTime"]; }]; readonly totalEndpoints: 2; readonly generatedAt: "2025-07-10T01:28:59.106Z"; }; export type TRAVELTIMES_DATAType = typeof TRAVELTIMES_DATA;