从Twitter的API请求只是地理标记的状态 [英] Requesting just geotagged statuses from the Twitter API

查看:201
本文介绍了从Twitter的API请求只是地理标记的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么能要求Twitter的API给我只是地理标记的状态?我目前的过滤,但它会更有意义更友好

How can I ask the twitter API to give me just geotagged statuses? I'm currently filtering but it would make more sense to be more 'friendly'

推荐答案

好像你应该​​能够用的流API和位置过滤,只需设置边框覆盖整个地球:

Seems like you should be able to do this with the streaming API and a location filter, just set the bounding box to cover the whole earth:

正如轨道参数,查询受到限制跟踪,在田径限制和受访问的角色,在状态/过滤器的方法描述描述。两者的边界框的数目和大小是有限的。包围盒可达到360度,东经180度,北纬,你可以指定多达25个边框。 180度360度,一箱将覆盖整个地球。更高的访问级别提供额外的边框。

Just as with the track parameter, queries are subject to Track Limitations, described in Track Limiting and subject to access roles, described in the statuses/filter method. Both the number and size of bounding boxes is limited. Bounding boxes can be up to 360 degrees longitude by 180 degrees latitude, and you may specify up to 25 bounding boxes. A box of 360-degrees by 180-degrees will cover the whole earth. Higher access levels provide additional bounding boxes.

和时间:

只有都创建使用地理标记API和跟踪边框内放置的tweets将包括在流中 - 用户的位置字段不是用来过滤鸣叫(例如,如果一个用户都有自己的位置,设置为旧金山,但鸣叫使用地理标签API是未创建并且没有地理元件,它不会被包括在流中)。

Only tweets that are both created using the Geotagging API and are placed from within a tracked bounding box will be included in the stream – the user’s location field is not used to filter tweets (e.g. if a user has their location set to "San Francisco", but the tweet was not created using the Geotagging API and has no geo element, it will not be included in the stream).

您然后应该基本上让所有地理标记​​的状态。

You should then be getting essentially all geotagged statuses.

这篇关于从Twitter的API请求只是地理标记的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆