/// <summary> /// Gets a list of locations with a geographic coordinate within the radius as described in the specified <code>options</code>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the response from the Instagram API.</returns> /// <see> /// <cref>https://instagram.com/developer/endpoints/locations/#get_locations_search</cref> /// </see> public SocialHttpResponse Search(InstagramGetLocationSearchOptions options) { if (options == null) { throw new ArgumentNullException("options"); } return(Client.DoHttpGetRequest("https://api.instagram.com/v1/locations/search", options)); }
/// <summary> /// Search for a location by geographic coordinate. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="InstagramSearchLocationsResponse"/> representing the response from the Instagram API.</returns> /// <see> /// <cref>https://instagram.com/developer/endpoints/locations/#get_locations_search</cref> /// </see> public InstagramSearchLocationsResponse Search(InstagramGetLocationSearchOptions options) { return(InstagramSearchLocationsResponse.ParseResponse(Raw.Search(options))); }