android - TWITTER4J - Filter tweets by location: tweets outside defined area -


developing android app, using twitter4j. i'm filtering tweets location:

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); } 

and i'm obtaining tweets inside , outside area defined. i'm wrong?


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -