added the geo_search API method, no attribute:street_address support at this time
authorRobert Dennis <rad3@Spanner.(none)>
Mon, 28 Nov 2011 01:59:45 +0000 (20:59 -0500)
committerRobert Dennis <rad3@Spanner.(none)>
Mon, 28 Nov 2011 01:59:45 +0000 (20:59 -0500)
tweepy/api.py

index 7b9231c32c0a1238a567d51070cffcada1fb406c..28d9f0618a9fc6d8ad379c37101864fb4c3440f6 100644 (file)
@@ -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):