6.0.0 • Published 3 years ago

@datafire/wmata_bus_route v6.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

@datafire/wmata_bus_route

Client library for Bus Route and Stop Methods

Installation and Usage

npm install --save @datafire/wmata_bus_route
let wmata_bus_route = require('@datafire/wmata_bus_route').create({
  apiKeyHeader: "",
  apiKeyQuery: ""
});

.then(data => {
  console.log(data);
});

Description

Bus stop information, route and schedule data, and bus positions.

Actions

5476362a281d830c946a3d6e

wmata_bus_route.5476362a281d830c946a3d6e({}, context)

Input

  • input object
    • RouteID string (values: 70): Bus route, e.g.: 70, 10A.
    • Lat string: Center point Latitude, required if Longitude and Radius are specified.
    • Lon string: Center point Longitude, required if Latitude and Radius are specified.
    • Radius string: Radius (meters) to include in the search area, required if Latitude and Longitude are specified.

Output

Output schema unknown

5476362a281d830c946a3d6f

wmata_bus_route.5476362a281d830c946a3d6f({
  "RouteID": ""
}, context)

Input

  • input object
    • RouteID required string (values: 70): Bus route variant, e.g.: 70, 10A, 10Av1.
    • Date string: Date in YYYY-MM-DD format for which to retrieve route and stop information. Defaults to today's date unless specified.

Output

Output schema unknown

5476362a281d830c946a3d71

wmata_bus_route.5476362a281d830c946a3d71({
  "RouteID": ""
}, context)

Input

  • input object
    • RouteID required string (values: 70): Bus route variant, e.g.: 70, 10A, 10Av1.
    • Date string: Date in YYYY-MM-DD format for which to retrieve schedule. Defaults to today's date unless specified.
    • IncludingVariations boolean (values: false, true): Whether or not to include variations. For example, if B30 is specified, include all variations such as B30v1, B30v2, etc.

Output

Output schema unknown

5476362a281d830c946a3d70

wmata_bus_route.5476362a281d830c946a3d70(null, context)

Input

This action has no parameters

Output

Output schema unknown

5476362a281d830c946a3d72

wmata_bus_route.5476362a281d830c946a3d72({
  "StopID": ""
}, context)

Input

  • input object
    • StopID required string (values: 1001195): 7-digit regional stop ID.
    • Date string: Date in YYYY-MM-DD format for which to retrieve schedule. Defaults to today's date unless specified.

Output

Output schema unknown

5476362a281d830c946a3d73

wmata_bus_route.5476362a281d830c946a3d73({}, context)

Input

  • input object
    • Lat string (values: 38.878586): Center point Latitude, required if Longitude and Radius are specified.
    • Lon string (values: -76.989626): Center point Longitude, required if Latitude and Radius are specified.
    • Radius string (values: 500): Radius (feet) to include in the search area, required if Latitude and Longitude are specified.

Output

Output schema unknown

5476362a281d830c946a3d68

wmata_bus_route.5476362a281d830c946a3d68({}, context)

Input

  • input object
    • RouteID string (values: 70): Base bus route, e.g.: 70, 10A.
    • Lat number: Center point Latitude, required if Longitude and Radius are specified.
    • Lon number: Center point Longitude, required if Latitude and Radius are specified.
    • Radius number: Radius (meters) to include in the search area, required if Latitude and Longitude are specified.

Output

Output schema unknown

5476362a281d830c946a3d69

wmata_bus_route.5476362a281d830c946a3d69({
  "RouteID": ""
}, context)

Input

  • input object
    • RouteID required string (values: 70): Bus route variant, e.g.: 70, 10A, 10Av1.
    • Date string: Date in YYYY-MM-DD format for which to retrieve route and stop information. Defaults to today's date unless specified.

Output

Output schema unknown

5476362a281d830c946a3d6b

wmata_bus_route.5476362a281d830c946a3d6b({
  "RouteID": ""
}, context)

Input

  • input object
    • RouteID required string (values: 70): Bus route variant, e.g.: 70, 10A, 10Av1, etc.
    • Date string: Date in YYYY-MM-DD format for which to retrieve schedule. Defaults to today's date unless specified.
    • IncludingVariations boolean (values: false, true): Whether or not to include variations if a base route is specified in RouteID. For example, if B30 is specified and IncludingVariations is set to true, data for all variations of B30 such as B30v1, B30v2, etc. will be returned.

Output

Output schema unknown

5476362a281d830c946a3d6a

wmata_bus_route.5476362a281d830c946a3d6a(null, context)

Input

This action has no parameters

Output

Output schema unknown

5476362a281d830c946a3d6c

wmata_bus_route.5476362a281d830c946a3d6c({
  "StopID": ""
}, context)

Input

  • input object
    • StopID required string (values: 1001195): 7-digit regional stop ID.
    • Date string: Date in YYYY-MM-DD format for which to retrieve schedule. Defaults to today's date unless specified.

Output

Output schema unknown

5476362a281d830c946a3d6d

wmata_bus_route.5476362a281d830c946a3d6d({}, context)

Input

  • input object
    • Lat number (values: 38.878586): Center point Latitude, required if Longitude and Radius are specified.
    • Lon number (values: -76.989626): Center point Longitude, required if Latitude and Radius are specified.
    • Radius number (values: 500): Radius (meters) to include in the search area, required if Latitude and Longitude are specified.

Output

Output schema unknown

Definitions

This integration has no definitions