http://twitter4j.org/javadoc/twitter4j/Status.html return a GeoLocation object containing latitude / longitude (http://twitter4j.org/javadoc/twitter4j/GeoLocation.html). Does it return the values for all tweets, since I am observing that the object is null most of the times. When does it return a geo location for a tweet?
Asked
Active
Viewed 1,124 times
1 Answers
0
Geographic coordinates are only provided when the tweet itself has been explicitly geotagged by the user. The Search API does some fuzzy matching based on the user-provided location field, which is why you'll get results that do not have coordinates included. v1 Search results do not contain complete tweet or user objects.
Source and try googling "geolocation in tweets null", there are plenty of discussions on the dev.twitter forums.

karmanaut
- 628
- 1
- 6
- 17