How to get location of Tweets with Twitter search API

The statuses/user_timeline part of the Twitter API returns geolocation data as "place" along with each Tweet. The search API, on the other hand, does not return this location data (as far as I can tell). Is there a way to get location data with the search API?


There is a geo field in each result of the search resource (see the example in the documentation), which is a form of geolocation, but is not the exact same thing as the place field in the statuses/user_timeline .

Alternatively you can make another request using the id of the result through the statuses/show/:id resource (see documentation) which returns both the geo and place fields, but that would mean making one more request per result.


Matt直接向Twitter询问了这个问题,并得到了回复,而那位回答的开发人员指出JSON格式确实包含了一个'geo'属性。

链接地址: http://www.djcxy.com/p/10080.html

上一篇: 有人可以请把这个英文给我PHP PHP CakePHP

下一篇: 如何使用Twitter搜索API获取Tweets的位置