Import a regular GTFS feed from a zip archive

import_transitnet(path, extent = NULL)

Arguments

path

Path to a .zip file containing all required GTFS datasets as .txt files.

extent

The area of interest as object of class sf or sfc. Only transit stop locations inside this area will be imported. Trips, routes, agencies, services and if present also transfers, pathways and shapes will be filtered accordingly, such that only those with a relation to the selected stops are imported. If NULL, the complete GTFS feed is imported.

Value

An object of class gtfs, which is a list of multiple data.table objects corresponding to the different dataset files of a GTFS feed.