Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 1.91 KB

README.md

File metadata and controls

32 lines (28 loc) · 1.91 KB

GTFS.Net

General Transit Feed Specification (GTFS) data parser

How to Install

Install via NuGet.

  Install-Package GtfsNet

Example

  1. Create a parser
  2. parse specified folder location ("feeds/subway" in the example below)
  3. Optional step: Validate the feed according to GTFS specification.
  GtfsFeedParser parser = new GtfsFeedParser();
  GtfsFeed feed = parser.Parse("feeds/subway");
  // Optional step
  GtfsFeedValidator validator = new GtfsFeedValidator();
  validator.Validate(feed);

Implementation detail

Credit

Many entity classes are copied from OsmSharp/GTFS project.

Next Version

  • Implement async methods