Exemple #1
0
 /// <summary>
 /// Given a <paramref name="latitude"/> and a <paramref name="longitude"/>, searches for up to 20 places that
 /// can be used as a <code>place_id</code> when updating a status. This request is an informative call
 /// and will deliver generalized results about geography.
 /// </summary>
 /// <param name="latitude">The latitude to search around. This parameter will be ignored
 /// unless it is inside the range -90.0 to +90.0 (North is positive) inclusive. It will
 /// also be ignored if there isn't a corresponding <paramref name="longitude"/> parameter.</param>
 /// <param name="longitude">The longitude to search around. The valid ranges for longitude
 /// is -180.0 to +180.0 (East is positive) inclusive. This parameter will be ignored if
 /// outside that range, if it is not a number, if <code>geo_enabled</code> is disabled, or
 /// if there not a corresponding <paramref name="latitude"/> parameter.</param>
 /// <returns>An instance of <see cref="TwitterReverseGeocodeResponse"/> representing the response.</returns>
 /// <see>
 ///     <cref>https://developer.twitter.com/en/docs/geo/places-near-location/api-reference/get-geo-reverse_geocode</cref>
 /// </see>
 public TwitterReverseGeocodeResponse ReverseGeocode(double latitude, double longitude)
 {
     return(TwitterReverseGeocodeResponse.ParseResponse(Raw.ReverseGeocode(latitude, longitude)));
 }
Exemple #2
0
 /// <summary>
 /// Given a latitude and a longitude, searches for up to 20 places that can be used as
 /// a <code>place_id</code> when updating a status. This request is an informative call
 /// and will deliver generalized results about geography.
 /// </summary>
 /// <param name="options">The options used when making the call to the API.</param>
 /// <returns>An instance of <see cref="TwitterReverseGeocodeResponse"/> representing the response.</returns>
 /// <see>
 ///     <cref>https://developer.twitter.com/en/docs/geo/places-near-location/api-reference/get-geo-reverse_geocode</cref>
 /// </see>
 public TwitterReverseGeocodeResponse ReverseGeocode(TwitterReverseGeocodeOptions options)
 {
     return(TwitterReverseGeocodeResponse.ParseResponse(Raw.ReverseGeocode(options)));
 }
Exemple #3
0
 /// <summary>
 /// Given a latitude and a longitude, searches for up to 20 places that can be used as
 /// a <var>place_id</var> when updating a status. This request is an informative call
 /// and will deliver generalized results about geography.
 /// </summary>
 /// <param name="latitude">The latitude to search around. This parameter will be ignored
 /// unless it is inside the range -90.0 to +90.0 (North is positive) inclusive. It will
 /// also be ignored if there isn't a corresponding <var>long</var> parameter.</param>
 /// <param name="longitude">The longitude to search around. The valid ranges for longitude
 /// is -180.0 to +180.0 (East is positive) inclusive. This parameter will be ignored if
 /// outside that range, if it is not a number, if <var>geo_enabled</var> is disabled, or
 /// if there not a corresponding <var>lat</var> parameter.</param>
 /// <param name="options">The options used when making the call to the API.</param>
 /// <see cref="https://dev.twitter.com/docs/api/1.1/get/geo/reverse_geocode"/>
 public TwitterReverseGeocodeResponse ReverseGeocode(double latitude, double longitude, TwitterReverseGeocodeOptions options)
 {
     return(TwitterReverseGeocodeResponse.ParseJson(Raw.ReverseGeocode(latitude, longitude, options)));
 }