Streaming API with track and locations. Not track or locations

filter
streaming
location

#1

client.stream(‘statuses/filter’, {track: “football,fifa”, locations: -122.75,36.8,-121.75,37.8 }

When I stream using ‘statuses/filter’ API with both track & locations. I am receiving tweets with the keyword football or the tweets tweeted from the location. It performs OR operations.

I want tweets which tweeted from the location with the keyword football. Do I need to pass any extra parameters for AND action.
Because of OR condition I am processing bulk number of unwanted tweets.


#2

That is not the way the Streaming API works. There is no AND capability on the filter endpoint.

The track, follow, and locations fields should be considered to be combined with an OR operator. track=foo&follow=1234 returns Tweets matching “foo” OR created by user 1234.