The API has now been updated and geo-location info is now available in the feeds. This means that your Watcher and Tripwire feeds will now include City, State/Region and Country information where such information is available. In addition to this, if you examine the XML tags of the RSS feeds, you'll see that longitude and latitude has been added as well. These points don't represent the user's exact location, but they will point you at the correct location for the city (if available).
This kind of information is very handy when coding your own applications to interace with the API. The longitude/latitude info enables you to add pushpins to Google maps without first having to look up and geocode the locations provided in your feed. It opens up a lot of possibilities for working with WunderCounter data and for creating 3rd party applications. Since the RSS feed is made up of valid XML, you can quite easily parse the feed via Perl/PHP/Ruby/Python etc to create some really cool stuff.
If you're a developer and you have some requests for API features and/or documentation, please get in touch with me. I'll try to post some Perl code samples in future, so that you can get some ideas for mashing up your WunderCounter hits with your own web site. If anyone wants to submit some code in other languages, I'd be happy to post it here or point others to your site to get inspiration.
Tuesday, April 7, 2009
API: Geo-location Info Now In Tripwire and Watcher Feeds
Labels:
API,
Google Maps,
RSS Feeds,
Tripwire,
watcher
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment