UNPKG

@drfrost/bods-js

Version:

JavaScript client for the UK's Bus Open Data Service (BODS) API

37 lines 1.11 kB
/** * Example usage of the BODS JavaScript Client * * This file demonstrates various ways to use the BODS API client * to access UK bus data including timetables, fares, real-time locations, * and service disruptions. */ /** * Example 1: Search for timetables */ declare function searchTimetables(): Promise<void>; /** * Example 2: Search for fares by geographic area */ declare function searchFaresByArea(): Promise<void>; /** * Example 3: Get real-time vehicle locations */ declare function getVehicleLocations(): Promise<void>; /** * Example 4: Get service disruptions */ declare function getDisruptions(): Promise<void>; /** * Example 5: Advanced searches and filtering */ declare function advancedExamples(): Promise<void>; /** * Example 6: Error handling and validation */ declare function errorHandlingExample(): Promise<void>; /** * Run all examples */ declare function runAllExamples(): Promise<void>; export { searchTimetables, searchFaresByArea, getVehicleLocations, getDisruptions, advancedExamples, errorHandlingExample, runAllExamples }; //# sourceMappingURL=examples.d.ts.map