Learn R Programming

gtfs2gps (version 2.1-2)

gtfs_stops_as_sf: Convert GTFS stops to simple feature object

Description

Convert a GTFS stops data loaded using gtfs2gps::read_gtf() into a point simple feature (sf).

Usage

gtfs_stops_as_sf(gtfs, crs = 4326)

Value

A simple feature (sf) object.

Arguments

gtfs

A GTFS data.

crs

The coordinate reference system represented as an EPSG code. The default value is 4326 (latlong WGS84)

Examples

Run this code
poa <- read_gtfs(system.file("extdata/poa.zip", package = "gtfs2gps"))
poa_shapes <- gtfs_shapes_as_sf(poa)
poa_stops <- gtfs_stops_as_sf(poa)

Run the code above in your browser using DataLab