23 April 2008
Twitter Adds Profile Geolocation API
Posted by Ryan Sarver under: Mobile; Programming .
Today Twitter announced a very cool update to their APIs by adding the ability to update the “location” property of your user profile. It’s not documented yet (should be shortly) but the API is live and you can already work with it.
Location updates currently aren’t normalized or geocoded, but the ability to update it on the fly allows for some very cool possibilities when it comes to geo-based tweeting — especially in apps like Twinkle and Twittervision.
To update the location of the user, you simply make a standard, authenticated call to:
http://twitter.com/account/update_location.[json | xml]
and pass it a location parameter as a GET or POST. For example, from the command line a curl call would look like:
curl -u USERNAME:PASSWORD -d location="747 Howard St, San Francisco, CA" http://twitter.com/account/update_location.json
Check it out on my Twitter profile and stay tuned to MyLoki where it should be showing up soon.
