map_gtfs_stop: map a single stop

View source: R/map-gtfs-stop.R

map_gtfs_stopR Documentation

map a single stop

Description

map a single stop

Usage

map_gtfs_stop(gtfs_obj, stop_id, stop_color = NULL)

Arguments

gtfs_obj

A GTFS list object with components agency_df, etc.

stop_id

Character. A single ID for a stop of interest.

stop_color

Character. An R color or hex value. Expects single value or NULL. Default is NULL. If length(stop_color) > 1, then it reverts to stop_color <- stop_color[1]

Value

Leaflet map object with point plotted at stop lat/long value


ropensci/gtfsr documentation built on June 11, 2022, 11:22 a.m.