Learn R Programming

tidytransit (version 0.5.1)

get_stop_geometry: Make Stops into Simple Features Points

Description

Make Stops into Simple Features Points

Usage

get_stop_geometry(stops)

Arguments

stops

a gtfs$stops dataframe

Value

an sf dataframe for gtfs routes with a point column

Examples

Run this code
# NOT RUN {
data(gtfs_obj)
some_stops <- gtfs_obj$stops[sample(nrow(gtfs_obj$stops), 40),]
some_stops_sf <- get_stop_geometry(some_stops)
plot(some_stops_sf)
# }

Run the code above in your browser using DataLab