Twitter API Goes Geo

Thanks to some new API updates, one can now update the Location field in a Twitter user's profile using the Twitter API. As Ryan Sarver writes on his blog:

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 [an iPhone app] and Twittervision.

This update has now been reflected in the official API Documentation. For example, the following curl command will update your location (where USER and PASSWORD are your Twitter username and password):

curl -u USER:PASSWORD -d location="Berkeley, CA"

Note that the location field is limited to 30 bytes when encoded in UTF-8. Hence, a long address such as "2855 Telegraph Ave., Berkeley, CA." will be truncated as "2855 Telegraph Ave., Berkeley,".

It will be interesting to see how this ability to programmatically change a user location will be used in practice. In addition to using this location field to display tweets on a Google map, Twittervision (profile) has been promoting a way to update one's location right within a tweet, by embedding a location such as L: Berkeley, CA. What will Twitter programmers and users use to update their location: the profile location, individual tweets, both, or neither?

Meanwhile the Twitter API continues to provide us with a steady stream of very useful and interesting mashups, with 46 Twitter apps listed here so far, including recent entries like the straightforward Twitterwatch that lets you see all the latest twitters as they are sent (full profile here).

Raymond Yee




Hmm, I thought twitter already did this. I'm using which has already been updating my twitter locations using some sort of api. I wonder what is different about this one...

Charlie -- I'm not familiar with It's possible that didn't/doesn't use the API to update twitter locations. However, shows that the location update functionality in the Twitter API is new -- or at least new to the public.

thats great that you are talking about the twitter api,a good example of searching with the twitter api is on because you can search on twitter and google at the same time.

[...] a lot of fun information to play with using Trendsmap. Keep in mind this is coming before tweets get geocoded, so it’s merely using the location field people fill out in their Twitter profiles. In other [...]