Beispiel #1
0
        /// <summary>
        /// Gets list of places from google place api
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        private async Task <List <Place> > getPlacesForOrder(OrderModel order)
        {
            PlaceApi     api      = new PlaceApi();
            Response     response = api.GetPlaces(order.CoordinateLat, order.CoordinateLong, order.Raduis * 1000, "restaurant", order.Cuisine, order.Budget, false).Result;
            List <Place> places   = response.Places;

            return(places);
        }
Beispiel #2
0
        }                                       // Co-ordinates

        async public Task <Detail> GetDetails()
        {
            return(await PlaceApi.GetDetails(this.PlaceId));
        }