bus_path: Bus Path Details

View source: R/bus-path.R

bus_pathR Documentation

Bus Path Details

Description

For a given date, returns the set of ordered latitude/longitude points along a route variant along with the list of stops served.

Usage

bus_path(RouteID, Date = NULL, api_key = wmata_key())

Arguments

RouteID

Bus route variant, e.g.: 70, 10A, 10Av1.

Date

Date for which to retrieve route and stop information. Uses today's date if NULL (default).

api_key

Subscription key which provides access to this API. Defaults Sys.getenv("WMATA_KEY") via wmata_key().

Format

A list with 4 elements:

RouteID

Bus route variant.

Name

Descriptive name for the route.

ShapePoint

The coordinate path of the line in both directions.

Stops

The coordinates of stops on a given line.

Value

A list with (1) set of ordered latitude/longitude points along a route variant along with (2) the list of stops served.

See Also

https://developer.wmata.com/docs/services/54763629281d83086473f231/operations/5476362a281d830c946a3d69

Other Bus Route and Stop Methods: bus_departs(), bus_position(), bus_routes(), bus_schedule(), bus_stops()

Examples

## Not run: 
bus_path("70")

## End(Not run)

metro documentation built on May 29, 2024, 8:32 a.m.