lookupstop: Allow users lookup the information of bus stop.

Description Usage Arguments Value Examples

Description

This function allows to lookup the information of stops, including stop ID, direction, longitude and latitude based on the arguments of bus number, stop name and stop direction.

Usage

1
2
lookupstop(bus, stopname = NULL, dir = NULL,
  key = Sys.getenv("BUS_CLIENT_KEY"))

Arguments

bus

Bus number.

stopname

Name of bus stop.It is optional and case insensitive.

dir

Direction of routes.It is optional and case insensitive.

key

Key for accessing the API.

Value

Dataframe with potential matching stop with bus number, stop ID, direction, longitude and latitude columns.

Examples

1
2
3
lookupstop(bus = 1, stopname = "Michigan")
lookupstop(bus = 1, dir = "Southbound")
lookupstop(bus = 1, stopname = "indiana", dir = "northbound")

ytingc/rCTA documentation built on May 15, 2019, 1:12 p.m.