gtfs_shapes_as_sf | R Documentation |
Convert a GTFS shapes data loaded using gtfs2gps::read_gtf() into a line simple feature (sf).
gtfs_shapes_as_sf(gtfs, crs = 4326)
gtfs |
A GTFS data. |
crs |
The coordinate reference system represented as an EPSG code. The default value is 4326 (latlong WGS84) |
A simple feature (sf) object.
poa <- read_gtfs(system.file("extdata/saopaulo.zip", package = "gtfs2gps"))
poa_sf <- gtfs_shapes_as_sf(poa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.