Skip to content

How To Play with Google Maps and Twitter API – woorkup.com

Link To Full Story: woorkup.com

Furthermore, on Nov. 19 2009, Twitter turned on geo-location functionality and started to give the possibility to external applications to provide geo-tagging features to end user: “We are really looking forward to seeing the creative uses emerge from the developer community,” (Ryan Sarver , twitter official blog) and on Dec. 23 2009 Twitter, on the official blog, announced a major new step into the location-aware future, i.e. The acquisition of Mixer Labs, creators of GeoAPI.

This new opportunity is increasing enormously the number of geo-located tweets that can be easily accessed by the twitter search API and give rise to tons of “funny games” with tweets.

The basic one is to show where tweets are coming from. Our today’s pet project is exactly showing tweets on a Google map (almost) continuously. Test it here.

Getting Tweets

Twitter exposes its data via a combination of at least two Application Programming Interfaces (APIs) but for our purpose the simple and yet powerful Search API (rigurously the search method of the RESTful Search API) is largely sufficient. What we need to sample tweets in a given region, say 10km around my home, is to access the URL:

http://search.twitter.com/search.json?geocode=[LAT]%2C[LNG]%2C10km

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*