Posted: August 19th, 2008 | Author: Robin | Filed under: AuckRoadAlerts, Projects, Twitter, Web Technology | 1 Comment »
Another Twitter Bot, perhaps a little boring of me, but maybe useful to Auckland Twitter users. Based on the Wellington version I made previously, just a slight tweak to the bounding box.
http://twitter.com/AuckRoadAlerts
A note to AA – if you don’t like me doing this, just let me know and I’ll take it down, it should be driving traffic to your site though.
Posted: August 11th, 2008 | Author: Robin | Filed under: Projects, Twitter, Web Technology, WellyRoadAlerts | 2 Comments »
It seems AA have updated their site using the GeoSmart Mapping API. I noticed they use an AJAX request to grab a JSON encoded object that neatly describes all the information I need. The JSON object not only breaks the incident data down into component parts but also includes NZMG map coordinates so I can choose exactly the bounding box I want to capture alerts from.
This change actually made it easier to take the twitter bot from a flaky hack to something a bit more robust in just a few minutes. I’m not sure if they intended that when they built the new version of the site, but it shows how using a really simple format like JSON for data interchange can deliver mash-up potential.
I hope AA don’t mind me scraping their data, if they do, they are welcome to get in touch.
http://twitter.com/WellyRoadAlerts
Posted: June 7th, 2008 | Author: Robin | Filed under: OilCrash, Projects, Twitter, Web Technology | 1 Comment »
After my last post, I realised I hardly ever drive to Wellington anymore anyway, trying not to burn any more hydrocarbons. Perhaps a more political version than WellyRoadWorks, but certainly more interesting to me, is this twitter feed I created which shows the oil price change whenever it moves up or down to the next whole dollar. Whether political, geological, or purely a function of over-eager oil speculators, the message is clear, everything that depends on oil is getting more expensive.
http://twitter.com/OilCrash
Background image: http://www.flickr.com/photos/good_day/152342733/
Scraping content from: http://bloomberg.com/energy
Posted: June 6th, 2008 | Author: Robin | Filed under: Projects, Twitter, Web Technology, WellyRoadAlerts | Tags: geospatial, mashup, traffic, Twitter | 1 Comment »
Trying to explain what’s cool about Twitter to a colleague yesterday, I put together a small script that scrapes the road alerts from AA Roadwatch and posts them to a twitter feed.
Why? Well Twitter is unique in that as well as being a social messaging platform, it also acts as a RSS/REST/SMS/IM gateway. I can post a message using the web service, and anyone can receive it as an SMS/text message or in their IM client if they follow it. In a way, it can be seen as a message queue with a publisher and multiple subscribers.
The beauty of Twitter is that I could whip up a first version of the WellyRoadAlerts mashup in just 20 minutes, as most of the work has been done for me.
There are many other examples of this sort of mashup out there, but in the meantime, some Wellingtonians might find this useful.
Check it out: http://twitter.com/WellyRoadAlerts
If you work for AA and don’t like me doing this, please let me know.