From: Harmon Date: Fri, 28 May 2021 11:39:48 +0000 (-0500) Subject: Rename API.geo_search to API.search_geo X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6f4fb39b1c88cc019e7e5d66f1c29b781568c622;p=tweepy.git Rename API.geo_search to API.search_geo --- diff --git a/docs/api.rst b/docs/api.rst index c228e05..4f98bc0 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -240,7 +240,7 @@ +------------------------------------------+-------------------------------------+ | `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 =================== diff --git a/tweepy/api.py b/tweepy/api.py index 56ee842..0995bd8 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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