GtfsEngine 1.0.0
See the version list below for details.
dotnet add package GtfsEngine --version 1.0.0
NuGet\Install-Package GtfsEngine -Version 1.0.0
<PackageReference Include="GtfsEngine" Version="1.0.0" />
paket add GtfsEngine --version 1.0.0
#r "nuget: GtfsEngine, 1.0.0"
// Install GtfsEngine as a Cake Addin #addin nuget:?package=GtfsEngine&version=1.0.0 // Install GtfsEngine as a Cake Tool #tool nuget:?package=GtfsEngine&version=1.0.0
GTFS Engine
Français
La General Transit Feed Specification (GTFS) est une spécification de données qui permet aux agences de transport en commun de publier leurs données de transport dans un format pouvant être utilisé par une grande variété d'applications logicielles. Aujourd'hui, le format de données GTFS est utilisé par des milliers de fournisseurs de transports publics.
Utilisation
Avec un fichier zip qui contient tous les fichiers txt
, la librairie permet de charger tout en mémoire avec les relations comme indiquées :
<p align="center"><kbd><img src="https://i.ibb.co/cL0BC4X/GTFSdb.png" height="450"></kbd></p>
Chargement
Fichier zip :
DataEngine engineData = new DataEngine();
engineData.LoadDatasByZip(File.OpenRead(pathZip));
Charger un fichier txt "seul" :
string path = "c:\chemin\chemin\shapes.txt";
DataEngine dataEngine = new DataEngine();
dataEngine.LoadData<Shapes>(File.OpenRead(path));
Exploitation
Il est possible de naviguer entre les propriétés, commme par exemple :
Trips trip = engineData.Gtfs.GetTrip("idTrip");
// Route lié à ce trip.
Routes routeLieAuTrip = trip.RoutesFk;
// Tous les stopTimes pour ce trip.
IEnumerable<StopTimes> stopTimes = trip.StopTimesCollection;
English
The General Transit Feed Specification (GTFS) is a data specification that allows public transit agencies to publish their transit data in a format that can be consumed by a wide variety of software applications.Today, the GTFS data format is used by thousands of public transport providers.
Usage
With a zip file that contains all the 'txt' files, the library allows you to load everything in memory with the relationships as indicated : <p align="center"><kbd><img src="https://i.ibb.co/cL0BC4X/GTFSdb.png" height="450"></kbd></p>
Loading
Zip file :
DataEngine engineData = new DataEngine();
engineData.LoadDatasByZip(File.OpenRead(pathZip));
Load a txt file "alone" :
string path = "c:\path\path\shapes.txt";
DataEngine dataEngine = new DataEngine();
dataEngine.LoadData<Shapes>(File.OpenRead(path));
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- ServiceStack.Text (>= 5.11.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.