gtfs-0.1: The General Transit Feed Specification format



Parsing GTFS files.

Besides these functions, this module provides many orphan instances of Field and ParseRow.



parseFile :: ParseRow a => FilePath -> IO [a]Source

Parse a single GTFS data file.

Since some files are optional, this produces an empty list if the file does not exist.

parseFeed :: FilePath -> IO FeedSource

Parse an entire feed directory.

Each individual file is read and parsed only when its field in Feed is forced. The usual caveats of lazy I/O apply. Parsing within a file is not lazy.

Alternatives to this function include parseFile and parseRow.