This project has moved and is read-only. For the latest updates, please go here.

Get Geolocated Tweets only

Feb 24, 2014 at 2:43 PM

I was wondering if the Twitter API provided a boolean attribute to know whether or not a tweet is geolocated. And if so, would it be possible to add it into LinqToTwitter's entities so that we could request only geolocated tweets ?

Thank you for reading and for the work you've done so far.
Feb 24, 2014 at 8:29 PM

The Twitter API sets coordinates to null for tweets without location information. In the case where coordinates are null (not available), LINQ to Twitter populates the Coordinates property with an empty Coordinates entity. Then the Latitude and Longitude properties are 0.

The Twitter API doesn't offer the option to filter by only Geolocated tweets.

To find out what is available, Making API Calls documents each endpoint. If you don't find what you are looking for or need more details, each page has a link at the bottom to the official Twitter API documentation for that endpoint.