Search Twitter Stream based on Lat and Longitude

Feb 10, 2015 at 12:52 PM
Hi hope u r fine.. i want ur help regarding searching the twitter stream based on the geo location coordinates, at the moment im doing something like
                ICoordinates c1 = Geo.GenerateCoordinates(lng1, lat1);
                ICoordinates c2 = Geo.GenerateCoordinates(lng2, lat2);
                var location = Geo.GenerateLocation(c1, c2);
for this to work i have to get two set of coordinates is there a way i can specify just one set of coordinates and specify a radius from where to search the stream like in "searchParameters", also please guide if im doing it right...

Regrads
Coordinator
Feb 10, 2015 at 5:13 PM
Hi,

You can do this very simply:
var searchParameter = Search.GenerateTweetSearchParameter(-43.230182, -22.912214, 1, DistanceMeasure.Kilometers);
var result = Search.SearchTweets(searchParameter);
Linvi
Marked as answer by linvi on 2/10/2015 at 10:14 AM
Feb 10, 2015 at 5:23 PM
Edited Feb 10, 2015 at 5:27 PM
thanks for your time, can i use the searchParameter in StreamAPI in some way? because im adding some keyword that r to be searched in certain area....
            ICoordinates c1 = Geo.GenerateCoordinates(lng1, lat1);
            ICoordinates c2 = Geo.GenerateCoordinates(lng2, lat2);
            var location = Geo.GenerateLocation(c1, c2);
           stream.AddLocation(location);  
           stream.AddTrack(track);  
           stream.AddTrack("homo");
           stream.FilterTweetsToBeIn(Language.English);
Coordinator
Feb 11, 2015 at 8:25 AM
Unfortunately, the Stream API does not provide the radius feature. You can only set a location based on 4 coordinates.

Regards,
Linvi
Feb 13, 2015 at 3:03 PM
thanks very much for your time.

Regards