lib/twitter/rest/places_and_geo.rb in twitter-5.14.0 vs lib/twitter/rest/places_and_geo.rb in twitter-5.15.0

- old
+ new

@@ -7,11 +7,11 @@ module PlacesAndGeo include Twitter::REST::Utils # Returns all the information about a known place # - # @see https://dev.twitter.com/docs/api/1.1/get/geo/id/:place_id + # @see https://dev.twitter.com/rest/reference/get/geo/id/:place_id # @rate_limited Yes # @authentication Requires user context # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid. # @param place_id [String] A place in the world. These IDs can be retrieved from {Twitter::REST::PlacesAndGeo#reverse_geocode}. # @param options [Hash] A customizable set of options. @@ -20,11 +20,11 @@ perform_get_with_object("/1.1/geo/id/#{place_id}.json", options, Twitter::Place) end # Searches for up to 20 places that can be used as a place_id # - # @see https://dev.twitter.com/docs/api/1.1/get/geo/reverse_geocode + # @see https://dev.twitter.com/rest/reference/get/geo/reverse_geocode # @note This request is an informative call and will deliver generalized results about geography. # @rate_limited Yes # @authentication Requires user context # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid. # @param options [Hash] A customizable set of options. @@ -38,11 +38,11 @@ perform_get_with_object('/1.1/geo/reverse_geocode.json', options, Twitter::GeoResults) end # Search for places that can be attached to a {Twitter::REST::Tweets#update} # - # @see https://dev.twitter.com/docs/api/1.1/get/geo/search + # @see https://dev.twitter.com/rest/reference/get/geo/search # @rate_limited Yes # @authentication Requires user context # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid. # @param options [Hash] A customizable set of options. # @option options [Float] :lat The latitude to search around. This option 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 :long option. @@ -60,10 +60,10 @@ end alias_method :places_nearby, :geo_search # Locates places near the given coordinates which are similar in name # - # @see https://dev.twitter.com/docs/api/1.1/get/geo/similar_places + # @see https://dev.twitter.com/rest/reference/get/geo/similar_places # @note Conceptually, you would use this method to get a list of known places to choose from first. Then, if the desired place doesn't exist, make a request to {Twitter::REST::PlacesAndGeo#place} to create a new one. The token contained in the response is the token necessary to create a new place. # @rate_limited Yes # @authentication Requires user context # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid. # @param options [Hash] A customizable set of options.