ntwitter
ntwitter copied to clipboard
Heads up when trying to catch tweets inside bounding box
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.