From 89aa641fefab7b540868e0a840342515b605e056 Mon Sep 17 00:00:00 2001 From: Robert Dennis Date: Sun, 27 Nov 2011 20:59:45 -0500 Subject: [PATCH] added the geo_search API method, no attribute:street_address support at this time --- tweepy/api.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tweepy/api.py b/tweepy/api.py index 7b9231c..28d9f06 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -698,6 +698,7 @@ class API(object): ) """ geo/nearby_places """ + # listed as deprecated on twitter's API documents nearby_places = bind_api( path = '/geo/nearby_places.json', payload_type = 'json', @@ -711,6 +712,13 @@ class API(object): allowed_param = ['id'] ) + """ geo/search """ + geo_search = bind_api( + path = '/geo/search.json', + payload_type = 'json', + allowed_param = ['lat', 'long', 'query', 'ip', 'granularity', 'accuracy', 'max_results', 'contained_within'] + ) + """ Internal use only """ @staticmethod def _pack_image(filename, max_size): -- 2.25.1