C# Class API.WebClients.TransitClient

Merges data obtained from Connexionz and Google Transit and makes it ready for delivery to clients.
Inheritance: ITransitClient
Afficher le fichier Open project: RikkiGibson/Corvallis-Bus-Server

Méthodes publiques

Méthode Description
CreatePlatformTags ( ) : int>.Dictionary

Maps a platform number (5-digit number shown on real bus stop signs) to a platform tag (3-digit internal Connexionz identifier).

CreateRoutes ( ) : List
CreateSchedule ( ) : ServerBusSchedule

Creates a bus schedule based on Google Transit data.

CreateStaticData ( ) : BusStaticData
CreateStops ( ) : List
GetEta ( int platformTag ) : Task

Private Methods

Méthode Description
InterpolateSchedule ( ConnexionzRoute connexionzRoute, List schedule ) : List>>.List

Fabricates a bunch of schedule information for a route on a particular day.

RoundToNearestMinute ( System.TimeSpan source ) : System.TimeSpan
ShouldAppendDirection ( ConnexionzPlatform platform, List platforms ) : bool

Method Details

CreatePlatformTags() public méthode

Maps a platform number (5-digit number shown on real bus stop signs) to a platform tag (3-digit internal Connexionz identifier).
public CreatePlatformTags ( ) : int>.Dictionary
Résultat int>.Dictionary

CreateRoutes() public méthode

public CreateRoutes ( ) : List
Résultat List

CreateSchedule() public méthode

Creates a bus schedule based on Google Transit data.
public CreateSchedule ( ) : ServerBusSchedule
Résultat ServerBusSchedule

CreateStaticData() public méthode

public CreateStaticData ( ) : BusStaticData
Résultat API.Models.BusStaticData

CreateStops() public méthode

public CreateStops ( ) : List
Résultat List

GetEta() public méthode

public GetEta ( int platformTag ) : Task
platformTag int
Résultat Task