public async Task GetPlacesDetail(AutoCompletePlaceForGoogleMap placeA)
        {
            var place = await mapAPIService.GetMyPlaceDetails(placeA.PlaceId);

            if (place != null)
            {
                DestinationCoordinates = new Location(place.Latitude, place.Longitude);
                LoadRouteCommand.Execute(null);
                RecentPlaces.Add(placeA);
            }
        }
        public async Task <AutoCompletePlaceForGoogleMap> GetNewPlaces(string text)
        {
            AutoCompletePlaceForGoogleMap results = null;

            using (var httpClient = CreateClient())
            {
                var response = await httpClient.GetAsync($"api/place/autocomplete/json?input={Uri.EscapeUriString(text)}&key={_googleMapsKey}").ConfigureAwait(false);

                if (response.IsSuccessStatusCode)
                {
                    var json = await response.Content.ReadAsStringAsync().ConfigureAwait(false);

                    if (!string.IsNullOrWhiteSpace(json) && json != "ERROR")
                    {
                        results = await Task.Run(() =>
                                                 JsonConvert.DeserializeObject <AutoCompletePlaceForGoogleMap>(json)
                                                 ).ConfigureAwait(false);
                    }
                }
            }

            return(results);
        }