Sunday, 15 April 2012

How to catch a number of tweets from TwitterStream by a given district of GeoLocations in twitter4j? -



How to catch a number of tweets from TwitterStream by a given district of GeoLocations in twitter4j? -

i need grab number of tweets twitterstream (because i'm doing info mining, number of tweets might large)

now have list of lat/long info , want grab tweets given radius of lat/long

is there method or class in twitter4j accomplish task?

thanks answer! now, found way deal question:

here source code (hope can help others)

filterquery fq = new filterquery(); fq.language(new string[] { "en" }); fq.locations(new double[][] { {0,10}, { 100 ,50.3 }}); twitterstream.addlistener(listener); twitterstream.filter(fq);

from code, tweet within rectangle (0,10), (100, 50.3) caught

geolocation twitter4j geo

No comments:

Post a Comment