Skip to content

dance2die/GTFS.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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