public async Task <List <Options> > GetBestRoutes(string origin, string destination, TimeSpan departureTime, string arrivalTime = "", string travelMode = "") { DirectionsConsumer directionsConsumer = new DirectionsConsumer(); List <Options> lsOptions = await directionsConsumer.GetBestRoutesByDirection(origin, destination, departureTime, arrivalTime, travelMode); return(lsOptions); }
public async Task <List <Options> > GetBestRoutes(string origin, string destination, MotoristaPreferencias motoristaPreferencias) { DirectionsConsumer directionsConsumer = new DirectionsConsumer(); List <Options> lsBestRoutes = await directionsConsumer.GetBestRoutesByDirection(origin, destination, motoristaPreferencias.DepartureTime, motoristaPreferencias.ArrivalTime); return(lsBestRoutes); }