StartStreamMatchingAllConditions v StartStreamMatchingAnyConditions

Mar 19, 2014 at 10:02 AM
Could you explain the difference between these in relation to FilteredStreams, or if available a link to anything which documents it.

Apr 7, 2014 at 1:18 AM

I've just seen your post looking in the past posts. Sorry for the big delay.

Let say you specify both a Track, Location and a Follower.
When twitter get these parameters, twitter will send you all the tweets that match one of the Track OR one of the location you've specified OR a tweet coming from a user you want to follow.

This feature is implemented by StartStreamMatchingAnyConditions.

But you might want to get the tweets that match all the requirements and if one of the requirement is not valid then not match the tweet at all. Consequently, StartStreamMatchingAllConditions check that a tweet received matches both a Track AND a Location AND that it has been created by one of the user that you follow.

Hope this clear things up.
Marked as answer by linvi on 4/7/2014 at 3:22 PM
Apr 20, 2015 at 8:16 AM
Edited Apr 20, 2015 at 2:20 PM

Thanks very much for your answer!

I have some other question, is it in any way possible to know which tweet came from which location?
and how can you just get all the tweets from a certain location, what do you give in as "addTrack" to get everything?