Method | Description | |
---|---|---|
DistanceTo ( double lat1, double lon1, double lat2, double lon2, char unit = 'K' ) : double |
Shamelessly c/ped from stackoverflow.
|
|
GetArrivalsSummary ( ITransitRepository repository, ITransitClient client, DateTimeOffset currentTime, IEnumerable |
Gets a user friendly arrivals summary for the requested stops. Returns a dictionary which takes a stop ID and returns the list of route arrival summaries (used to populate a table).
|
|
GetEtas ( ITransitRepository repository, ITransitClient client, IEnumerable |
Gets the ETA info for a set of stop IDS. The outer dictionary takes a route number and gives a dictionary that takes a stop ID to an ETA.
|
|
GetFavoritesViewModel ( ITransitRepository repository, ITransitClient client, DateTimeOffset currentTime, IEnumerable
|
||
GetSchedule ( ITransitRepository repository, ITransitClient client, DateTimeOffset currentTime, IEnumerable |
Returns the bus schedule for the given stop IDs, incorporating the ETA from Connexionz.
|
Method | Description | |
---|---|---|
GetFavoriteStops ( |
||
InterleaveRouteScheduleAndEstimates ( |
||
MakeRelativeScheduleWithinCutoff ( |
||
ToRouteArrivalsSummaries ( List |
||
ToViewModel ( FavoriteStop favorite, |
public static DistanceTo ( double lat1, double lon1, double lat2, double lon2, char unit = 'K' ) : double | ||
lat1 | double | |
lon1 | double | |
lat2 | double | |
lon2 | double | |
unit | char | |
return | double |
public static GetArrivalsSummary ( ITransitRepository repository, ITransitClient client, DateTimeOffset currentTime, IEnumerable |
||
repository | ITransitRepository | |
client | ITransitClient | |
currentTime | DateTimeOffset | |
stopIds | IEnumerable |
|
return | List |
public static GetEtas ( ITransitRepository repository, ITransitClient client, IEnumerable |
||
repository | ITransitRepository | |
client | ITransitClient | |
stopIds | IEnumerable |
|
return | Task |
public static GetFavoritesViewModel ( ITransitRepository repository, ITransitClient client, DateTimeOffset currentTime, IEnumerable
|
||
repository | ITransitRepository | |
client | ITransitClient | |
currentTime | DateTimeOffset | |
stopIds | IEnumerable |
|
optionalUserLocation | ||
return | Task
|
public static GetSchedule ( ITransitRepository repository, ITransitClient client, DateTimeOffset currentTime, IEnumerable |
||
repository | ITransitRepository | |
client | ITransitClient | |
currentTime | DateTimeOffset | |
stopIds | IEnumerable |
|
return | Task |