Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以过滤用户位置和关键字
double[][] location= location; String keywords[] = {"keywords"}; FilterQuery fq = new FilterQuery(); fq.locations(location); fq.track(keywords); twitterStream.filter(fq);
这些代码似乎只过滤关键字..
位置的边界框是逻辑 OR。位置参数可以与跟踪参数组合,但请注意,所有术语在逻辑上都是 OR,因此查询字符串 track=twitter&locations=-122.75,36.8,-121.75,37.8 将匹配包含术语 Twitter 的任何推文(即使是非地理推文)或来自旧金山地区。