Learn R Programming

MBTAr (version 2.0.0)

Tstopslookup: Search for information on a stop with a given name. Useful when stop_id is not known.

Description

Search for information on a stop with a given name. Useful when stop_id is not known.

Usage

Tstopslookup(stop_name)

Arguments

stop_name

Name of stop to search for.

Value

Dataframe with row for each potential matching stop and the following columns:

route_id

GTFS-compatible route_id for the stop match.

direction_id

Direction ID (0/1)

direction_name

Human-readable direction identifier

stop_order

Order in given direction of stop

stop_id

GTFS-compatible ID of stop

stop_name

Name of stop

parent_station

Parent station GTFS-compatible ID

parent_station_name

Parent station name

stop_lat

Stop latitude

stop_lon

Stop longitude

Examples

Run this code
# NOT RUN {
Tstopslookup(stop_name = "Mattapan") # this would take a long tiem (~70 seconds) so is left out here
# }

Run the code above in your browser using DataLab