+------------------------------------------+--------------------------------------+
| `GET trends/available`_ | :meth:`API.available_trends` |
+------------------------------------------+--------------------------------------+
- | `GET trends/closest`_ | :meth:`API.trends_closest` |
+ | `GET trends/closest`_ | :meth:`API.closest_trends` |
+------------------------------------------+--------------------------------------+
| .. centered:: |Get trends near a location|_ |
+------------------------------------------+--------------------------------------+
.. automethod:: API.available_trends
-.. automethod:: API.trends_closest
+.. automethod:: API.closest_trends
Get trends near a location
--------------------------
return self.request('GET', 'trends/available', **kwargs)
@payload('json')
- def trends_closest(self, lat, long, **kwargs):
- """trends_closest(lat, long)
+ def closest_trends(self, lat, long, **kwargs):
+ """closest_trends(lat, long)
Returns the locations that Twitter has trending topic information for,
closest to a specified location.