C# 클래스 API.WebClients.TransitClient

Merges data obtained from Connexionz and Google Transit and makes it ready for delivery to clients.
상속: ITransitClient
파일 보기 프로젝트 열기: RikkiGibson/Corvallis-Bus-Server

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CreatePlatformTags() 공개 메소드

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
리턴 int>.Dictionary

CreateRoutes() 공개 메소드

public CreateRoutes ( ) : List
리턴 List

CreateSchedule() 공개 메소드

Creates a bus schedule based on Google Transit data.
public CreateSchedule ( ) : ServerBusSchedule
리턴 ServerBusSchedule

CreateStaticData() 공개 메소드

public CreateStaticData ( ) : BusStaticData
리턴 API.Models.BusStaticData

CreateStops() 공개 메소드

public CreateStops ( ) : List
리턴 List

GetEta() 공개 메소드

public GetEta ( int platformTag ) : Task
platformTag int
리턴 Task