Github user sjbrunst commented on the pull request:
https://github.com/apache/spark/pull/1717#issuecomment-58955712
@surendramarupudi When you create a BoundingBox, you give it latitudes and
longitudes to define a rectangular area, and any tweet inside that rectangle
may be returned. Here are 3 examples:
* If you want to request any geotagged tweet, your location parameter would
be ``Seq(BoundingBox(-180.0,-90.0,180.0,90.0))``
* If you want to request geotagged tweets from New York City, your location
parameter would be ``Seq(BoundingBox(-74.0,40.0,-73.0,41.0))``
* If you want to request geotagged tweets from either New York City or San
Francisco, your location parameter would be
``Seq(BoundingBox(-74.0,40.0,-73.0,41.0),BoundingBox(-122.75,36.8,-121.75,37.8))``
You should also be aware that if you use both the filters and the location
parameters, Twitter will return tweets that match one of the keyword filters OR
one of the locations. Not all tweets will satisfy both the filters and
locations.
Also note that the current version also has a count parameter, so you would
need to call ``TwitterUtils.createStream(ssc,None,filters,0,locations)``.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]