Exemple #1
0
        /// <summary>
        /// Sends the specified request to the Google Maps Places Autocomplate web
        /// service and parses the response as an AutocompleteResponse
        /// object.
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public AutocompleteResponse GetAutocompleteResponse(AutocompleteRequest request)
        {
            var url = new Uri(baseUri, request.ToUri());

            return(http.Get <AutocompleteResponse>(url));
        }
Exemple #2
0
        public async Task <AutocompleteResponse> GetAutocompleteResponseAsync(AutocompleteRequest request)
        {
            var url = new Uri(baseUri, request.ToUri());

            return(await http.GetAsync <AutocompleteResponse>(url));
        }
        /// <summary>
        /// Sends the specified request to the Google Maps Places Autocomplate web
        /// service and parses the response as an AutocompleteResponse
        /// object.
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public AutocompleteResponse GetAutocompleteResponse(AutocompleteRequest request)
        {
            var url = new Uri(this.BaseUri, request.ToUri());

            return(Internal.Http.Get(url).As <AutocompleteResponse>());
        }