Пример #1
0
        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);
        }
Пример #2
0
        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);
        }