0

使用 twitter4j 开发一个 android 应用程序。我正在按位置过滤推文:

public void filterDataWithNewUserLocation(double latitude, double longitude) {
    FilterQuery filterQuery = new FilterQuery();
    //double[][] locations = {{12.6340, 45.7828}, {13.6340, 46.7828}}; // SW NE
    double[][] locations = {
            {longitude-0.3, latitude-0.3},
            {longitude+0.3, latitude+0.3}};
    filterQuery.locations(locations);
    twitterStream.filter(filterQuery);
}

我在我定义的区域内和之外获得推文。我哪里错了?

4

0 回答 0