Hello!
A few days ago, I saw that happn.in now offers a service where tweets (messages on twitter.com) are grouped and analyzed for local areas. For several cities, they give you a list of trending terms.
I know that you cannot exactly know how they do this but maybe you can help me, though: How can I do this, too? I have several approaches. Is one of them useful?
- APPROACH 1
Use the REST API public_timeline and go through all the tweets every time. Make a list of patterns and fitting locations, e.g. "New York" and "NY" go to "New York City", "Los Angeles" and "LA" go to "Los Angeles" etc. If you can't find a known pattern, you continue with the next tweet.
- APPROACH 2
Use the Search API geocode feature, e.g. "http://search.twitter.com/search.atom?geocode=##LAT##%2C##LONG##%2C##radius##km". Unfortunately, I don't know if the results are trustful/good!?
- APPROACH 3
Follow users who have a city name in their location field and analyze the REST API friends_timeline
Do you have other ideas?
I hope you can help me. Thanks in advance!