C# Class CorvallisBusCoreNetCore.WebClients.TransitClient

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

Public Methods

Method Description
CreatePlatformTagsAsync ( ) : int>>.Task

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

CreateRoutesAsync ( ) : Task>
CreateScheduleAsync ( ) : Task

Creates a bus schedule based on Google Transit data.

CreateStaticDataAsync ( ) : Task
CreateStopsAsync ( ) : Task>
GetEtaAsync ( int platformTag ) : Task

Private Methods

Method 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

Method Details

CreatePlatformTagsAsync() public method

Maps a platform number (5-digit number shown on real bus stop signs) to a platform tag (3-digit internal Connexionz identifier).
public CreatePlatformTagsAsync ( ) : int>>.Task
return int>>.Task

CreateRoutesAsync() public method

public CreateRoutesAsync ( ) : Task>
return Task>

CreateScheduleAsync() public method

Creates a bus schedule based on Google Transit data.
public CreateScheduleAsync ( ) : Task
return Task

CreateStaticDataAsync() public method

public CreateStaticDataAsync ( ) : Task
return Task

CreateStopsAsync() public method

public CreateStopsAsync ( ) : Task>
return Task>

GetEtaAsync() public method

public GetEtaAsync ( int platformTag ) : Task
platformTag int
return Task