Example #1
0
 /// <summary>
 /// Performs a text based search for places matching the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for the call to the API.</param>
 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
 /// <see>
 ///     <cref>https://developers.google.com/places/web-service/search#TextSearchRequests</cref>
 /// </see>
 public IHttpResponse TextSearch(PlacesTextSearchOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     return(Client.GetResponse(options));
 }
Example #2
0
 /// <summary>
 /// Performs a text based search for places matching the specified <paramref name="options"/>.
 /// </summary>
 /// <param name="options">The options for the call to the API.</param>
 /// <returns>An instance of <see cref="PlacesTextSearchResponse"/> representing the response.</returns>
 /// <see>
 ///     <cref>https://developers.google.com/places/web-service/search#TextSearchRequests</cref>
 /// </see>
 public PlacesTextSearchResponse TextSearch(PlacesTextSearchOptions options)
 {
     return(new PlacesTextSearchResponse(Client.TextSearch(options)));
 }