ntwitter icon indicating copy to clipboard operation
ntwitter copied to clipboard

Heads up when trying to catch tweets inside bounding box

Open belgianwolfie opened this issue 12 years ago • 0 comments

Just a quick heads up that you have to do some manual double check after trying to catch all tweets inside a bounding box with:

var t = new twitter({ consumer_key: config.twitter.consumer_key,
consumer_secret: config.twitter.consumer_secret,
access_token_key: config.twitter.access_token_key,
access_token_secret: config.twitter.access_token_secret });

t.stream('statuses/filter', {'locations':'-118.15,36.14,-118.08,36.17'}, function(stream) {

...

There are a lot of issues posted on twitter dev support that the bounding box is NOT accurate. So , check your coordinates.coordinates json object for lng and lat (in that order) after scraping them using above function , cause otherwise you will most likely end up with tweets that originate from outside your bounding box.

belgianwolfie avatar Jul 14 '13 20:07 belgianwolfie