Méthode | 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.
|
Méthode | 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 | |
Résultat | double |
public static GetArrivalsSummary ( ITransitRepository repository, ITransitClient client, DateTimeOffset currentTime, IEnumerable |
||
repository | ITransitRepository | |
client | ITransitClient | |
currentTime | DateTimeOffset | |
stopIds | IEnumerable |
|
Résultat | List |
public static GetEtas ( ITransitRepository repository, ITransitClient client, IEnumerable |
||
repository | ITransitRepository | |
client | ITransitClient | |
stopIds | IEnumerable |
|
Résultat | Task |
public static GetFavoritesViewModel ( ITransitRepository repository, ITransitClient client, DateTimeOffset currentTime, IEnumerable
|
||
repository | ITransitRepository | |
client | ITransitClient | |
currentTime | DateTimeOffset | |
stopIds | IEnumerable |
|
optionalUserLocation | ||
Résultat | Task
|
public static GetSchedule ( ITransitRepository repository, ITransitClient client, DateTimeOffset currentTime, IEnumerable |
||
repository | ITransitRepository | |
client | ITransitClient | |
currentTime | DateTimeOffset | |
stopIds | IEnumerable |
|
Résultat | Task |