bsu-shuttle-data
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i bsu-shuttle-data

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

6.57 kB

Total Files

6

Last publish

Collaborators

  • alec-chan