From: Harmon Date: Fri, 19 Feb 2021 04:31:41 +0000 (-0600) Subject: Require lat and long parameters for API.reverse_geocode X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=87d86462b112b35e9741c9452bf956aaa16fb47c;p=tweepy.git Require lat and long parameters for API.reverse_geocode --- diff --git a/tweepy/api.py b/tweepy/api.py index 79d5678..fa72db0 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1170,11 +1170,12 @@ class API: ) @payload('place', list=True) - def reverse_geocode(self, *args, **kwargs): + def reverse_geocode(self, lat, long, *args, **kwargs): """ :reference: https://developer.twitter.com/en/docs/geo/places-near-location/api-reference/get-geo-reverse_geocode """ return self.request( - 'GET', 'geo/reverse_geocode', *args, endpoint_parameters=( + 'GET', 'geo/reverse_geocode', lat, long, *args, + endpoint_parameters=( 'lat', 'long', 'accuracy', 'granularity', 'max_results' ), **kwargs )