bsu-shuttle-data
v1.0.5
Published
Polls data from BSU's Ride Systems backend services to gather location of all shuttles.
Downloads
2
Readme
Usage
import { getMapVehiclePoints, getRouteStopArrivals } from "bsu-shuttle-data";
// Get an array of shuttle_data
/**
* {
* GroundSpeed: number;
* Heading: number;
* IsDelayed: boolean;
* IsOnRoute: boolean;
* Latitude: number;
* Longitude: number;
* Name: string;
* RouteID: number;
* Seconds: number;
* TimeStamp: asp_netJsonDate;
* VehicleID: number;
* }
*/
await getMapVehiclePoints();
// Get an array of arrival_data
/**
* arrival_data
* {
* RouteID: number;
* RouteStopID: number;
* ScheduledTimes: [];
* VehicleEstimates: vehicle_estimate[];
* }
*/
/**
* vehicle_estimate
* {
* RouteID: number;
* RouteStopID: number;
* ScheduledTimes: [];
* VehicleEstimates: vehicle_estimate[];
* }
*/
await getRouteStopArrivals(8)