REST API v1
The 'statuses/user_timeline' part of the API returns geolocation data as "place" along with each Tweet. The search API, on the other hand, does not return this location data (as far as I can tell). Is there a way to get location data with the search API?
Unfortunately the search API is fairly different from the rest of the REST APIs. We are working on getting them unified, but you'll need to treat the responses differently.
Some search API responses will contain a populated "geo" object:
Others will contain a "location", pulled from the user's profile location info. Sometimes this has coordinates:
"location": "iPhone: 40.643913,-73.749466",
but other times it may be arbitrary:
"location": "YYZ - JFK",
If you want to limit search results to those with either of these, use the geocode parameter and set the radius to encompass the Earth.
If we just using the search API, we see geo field but never the actual location. Is it not true that this is only available in the stream APIs.
don't all tweets have a location attached ? I get null to some getLocation() queries.
but is it permitted to harvest geo location data, on another thread on this forum i read that is is against the terms of twitter...
https://dev.twitter.com/discussions/11835 , pls look at here and tell us if its okay
plz tell that how i will location of a tweet of a sender
This topic is now closed. New replies are no longer allowed.