Twitter 流边界框 - 如何覆盖伦敦/英国
我正在尝试使用 Twitter 流 API 从英国整体流式传输推文,但是我的边界框遇到了问题。
我用来定义英国(包括爱尔兰)边界框的 LAT/LON 对如下。
-9.05, 48.77, 2.19, 58.88
但是,当我尝试将其与 Twitter 流 API 一起使用时,它会显示以下错误消息。
Location track must be less than 1 degrees on a side: LocationTrack(48.77,-9.05,58.88,2.19)
我无法想象 Twitter 不允许您指定一个边界框来覆盖负/正 LAT 之间交叉的区域。我是否在这里遗漏了一些东西,或者这是否意味着 Twitter 仅允许您在西半球进行直播?
如果有人对我如何克服这个问题有建议,我很想听听你的意见。
I'm attempting to stream Tweets from the UK as a whole, using Twitters stream API, however I'm having trouble with my bounding box.
The LAT/LON pairs I'm using to define a bounding box of the whoe UK(Ire included) is as follows.
-9.05, 48.77, 2.19, 58.88
However when I try to use this with the Twitter stream API, it states the following error message.
Location track must be less than 1 degrees on a side: LocationTrack(48.77,-9.05,58.88,2.19)
I can't imagine that Twitter do not allow you a specify a bounding box that covers an area that crosses between the negative/positive LAT. Am I missing something here, or would this mean that Twitter only allow you to stream if you are in the Wester hemishphere, effectively?
If anyone has a suggest as to how I might be able to over-come this, I'd be very interested in hearing you out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
其原因是此错误中“程度”一词的含义含糊不清。
由于使用了纬度/经度坐标,我认为它意味着第二个纬度/经度对中度数的实际值,而实际上它意味着边界框的大小。
我的不好。
The reason for this is ambiguity around the meaning of the word 'degree' in this error.
Due to the lat/lon coordinates being used, I assumed it meant the actual VALUE of the degree in the second lat/lon pair, where as in actual fact it means the SIZE of the bounding box.
My bad.