Skip to content

NextDepartures is a .NET Library that queries GTFS (General Transit Feed Specification) data sets stored locally, or in a database such as MySQL, PostgreSQL, SQLite or SQL Server. The library will work with any well-formed GTFS data set.

License

Notifications You must be signed in to change notification settings

philvessey/NextDepartures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NextDepartures

NextDepartures is a .NET Library that queries GTFS (General Transit Feed Specification) data sets stored locally, or in a database such as MySQL, PostgreSQL, SQLite or SQL Server. The library will work with any well-formed GTFS data set.

  • Build Status: Build Status
  • NextDepartures.Standard: NuGet Version
  • NextDepartures.Storage.GTFS: NuGet Version
  • NextDepartures.Storage.MySql: NuGet Version
  • NextDepartures.Storage.Postgres: NuGet Version
  • NextDepartures.Storage.Sqlite: NuGet Version
  • NextDepartures.Storage.SqlServer: NuGet Version

Local Usage

using NextDepartures.Standard;
using NextDepartures.Storage.GTFS;

var feed = await Feed.Load(GtfsStorage.Load());

MySQL Usage

using NextDepartures.Standard;
using NextDepartures.Storage.MySql;

var feed = await Feed.Load(MySqlStorage.Load());

ProgreSQL Usage

using NextDepartures.Standard;
using NextDepartures.Storage.Postgres;

var feed = await Feed.Load(PostgresStorage.Load());

SQLite Usage

using NextDepartures.Standard;
using NextDepartures.Storage.Sqlite;

var feed = await Feed.Load(SqliteStorage.Load());

SQL Server Usage

using NextDepartures.Standard;
using NextDepartures.Storage.SqlServer;

var feed = await Feed.Load(SqlServerStorage.Load());

Agencies Endpoints

var results = await feed.GetAgenciesByEmailAsync();
var results = await feed.GetAgenciesByFareUrlAsync();
var results = await feed.GetAgenciesByIdAsync();
var results = await feed.GetAgenciesByLanguageCodeAsync();
var results = await feed.GetAgenciesByNameAsync();
var results = await feed.GetAgenciesByPhoneAsync();
var results = await feed.GetAgenciesByQueryAsync();
var results = await feed.GetAgenciesByTimezoneAsync();
var results = await feed.GetAgenciesByUrlAsync();

Services Endpoints

var results = await feed.GetServicesByParentStationAsync();
var results = await feed.GetServicesByStopAsync();
var results = await feed.GetServicesByTripAsync();

Stops Endpoints

var results = await feed.GetStopsByCodeAsync();
var results = await feed.GetStopsByDescriptionAsync();
var results = await feed.GetStopsByIdAsync();
var results = await feed.GetStopsByLevelAsync();
var results = await feed.GetStopsByLocationAsync();
var results = await feed.GetStopsByLocationTypeAsync();
var results = await feed.GetStopsByNameAsync();
var results = await feed.GetStopsByParentStationAsync();
var results = await feed.GetStopsByPlatformCodeAsync();
var results = await feed.GetStopsByQueryAsync();
var results = await feed.GetStopsByTimezoneAsync();
var results = await feed.GetStopsByUrlAsync();
var results = await feed.GetStopsByWheelchairBoardingAsync();
var results = await feed.GetStopsByZoneAsync();

License

Licensed under the MIT License.

About

NextDepartures is a .NET Library that queries GTFS (General Transit Feed Specification) data sets stored locally, or in a database such as MySQL, PostgreSQL, SQLite or SQL Server. The library will work with any well-formed GTFS data set.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages