Require lat and long parameters for API.reverse_geocode
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:31:41 +0000 (22:31 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:31:41 +0000 (22:31 -0600)
tweepy/api.py

index 79d5678536adf5107f642fbe6f99e99ff02237c3..fa72db0a7b5ae4a225cc2135a85f4d00e89a9676 100644 (file)
@@ -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
         )