From 6f4fb39b1c88cc019e7e5d66f1c29b781568c622 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 28 May 2021 06:39:48 -0500 Subject: [PATCH] Rename API.geo_search to API.search_geo --- docs/api.rst | 4 ++-- tweepy/api.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.25.1