/// <summary> /// Performs a search for places within a area, based on 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#PlaceSearchRequests</cref> /// </see> public IHttpResponse NearbySearch(PlacesNearbySearchOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } return(Client.GetResponse(options)); }
/// <summary> /// Performs a search for places within a area, based on the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="PlacesNearbySearchResponse"/> representing the response.</returns> /// <see> /// <cref>https://developers.google.com/places/web-service/search#PlaceSearchRequests</cref> /// </see> public PlacesNearbySearchResponse NearbySearch(PlacesNearbySearchOptions options) { return(new PlacesNearbySearchResponse(Client.NearbySearch(options))); }