Rename API.geo_search to API.search_geo
authorHarmon <Harmon758@gmail.com>
Fri, 28 May 2021 11:39:48 +0000 (06:39 -0500)
committerHarmon <Harmon758@gmail.com>
Fri, 28 May 2021 11:39:48 +0000 (06:39 -0500)
docs/api.rst
tweepy/api.py

index c228e053119cc7251d5bd5c8636f525a7dc88585..4f98bc05e99a61902e3c71467aab6bbc6c28e5e8 100644 (file)
     +------------------------------------------+-------------------------------------+
     | `GET geo/reverse_geocode`_               | :meth:`API.reverse_geocode`         |
     +------------------------------------------+-------------------------------------+
-    | `GET geo/search`_                        | :meth:`API.geo_search`              |
+    | `GET geo/search`_                        | :meth:`API.search_geo`              |
     +------------------------------------------+-------------------------------------+
     | .. centered:: :ref:`Developer utilities`                                       |
     +------------------------------------------+-------------------------------------+
@@ -612,7 +612,7 @@ Get places near a location
 
 .. automethod:: API.reverse_geocode
 
-.. automethod:: API.geo_search
+.. automethod:: API.search_geo
 
 Developer utilities
 ===================
index 56ee842d43e4ba32ae2f1063c4648bf21365a2bf..0995bd8c31242c33d1181e7a1bf4cffc01203815 100644 (file)
@@ -3810,8 +3810,8 @@ class API:
         )
 
     @payload('place', list=True)
-    def geo_search(self, **kwargs):
-        """geo_search(*, lat, long, query, ip, granularity, max_results)
+    def search_geo(self, **kwargs):
+        """search_geo(*, lat, long, query, ip, granularity, max_results)
 
         Search for places that can be attached to a Tweet via
         :func:`API.update_status`. Given a latitude and a longitude pair, an IP