Class GTFSReaderExtensions
Contains extension methods for the GTFS reader.
Inheritance
System.Object
GTFSReaderExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public static class GTFSReaderExtensions
Methods
Read(GTFSReader<IGTFSFeed>, IGTFSFeedDB, IEnumerable<IGTFSSourceFile>)
Reads a GTFS feed directly into a GTFS feed db.
Declaration
public static int Read(this GTFSReader<IGTFSFeed> reader, IGTFSFeedDB db, IEnumerable<IGTFSSourceFile> source)
Parameters
GTFSReader<IGTFSFeed>
reader
|
IGTFSFeedDB
db
|
System.Collections.Generic.IEnumerable<IGTFSSourceFile>
source
|
Returns
System.Int32
|
Read<T>(GTFSReader<T>, IEnumerable<IGTFSSourceFile>)
Reads a GTFS feed from the given source.
Declaration
public static T Read<T>(this GTFSReader<T> reader, IEnumerable<IGTFSSourceFile> source)where T : IGTFSFeed, new ()
Parameters
GTFSReader<T>
reader
|
System.Collections.Generic.IEnumerable<IGTFSSourceFile>
source
|
Returns
T
|
Type Parameters
T
|
Read<T>(GTFSReader<T>, IEnumerable<IGTFSSourceFile>, IGTFSSourceFile)
Reads a GTFS feed from the given source.
Declaration
public static T Read<T>(this GTFSReader<T> reader, IEnumerable<IGTFSSourceFile> source, IGTFSSourceFile file)where T : IGTFSFeed, new ()
Parameters
GTFSReader<T>
reader
|
System.Collections.Generic.IEnumerable<IGTFSSourceFile>
source
|
IGTFSSourceFile
file
|
Returns
T
|
Type Parameters
T
|
Read<T>(GTFSReader<T>, String, Nullable<Char>)
Reads a GTFS feed.
Declaration
public static T Read<T>(this GTFSReader<T> reader, string path, char ? separator = default (char ? ))where T : IGTFSFeed, new ()
Parameters
GTFSReader<T>
reader
The reader. |
System.String
path
The path, this has to be either a folder or a zip archive. |
System.Nullable<System.Char>
separator
A custom separator. |
Returns
T
The GTFS feed. |
Type Parameters
T
The GTFS feed type. |