internal static async Task <Response> TripPassages(string tripId, StopPassagesType type) { string stype = string.Empty; switch (type) { case StopPassagesType.Arrival: stype = "arrival"; break; case StopPassagesType.Departure: stype = "departure"; break; } return(await HttpHelper.GetString(string.Format(Addresses.TripPassages, tripId, stype)).ConfigureAwait(false)); }
internal static async Task <Response> AllStops() { return(await HttpHelper.GetString(Addresses.AllStops).ConfigureAwait(false)); }
internal static async Task <Response> AutoComplete(string query) { return(await HttpHelper.GetString(string.Format(Addresses.Autocomplete, query)).ConfigureAwait(false)); }
internal static async Task <Response> AllRoutes(bool bus = false) { return(await HttpHelper.GetString(Addresses.AllRoutes, bus).ConfigureAwait(false)); }