Last year I knocked up a tweeps map ahead of the 2009 LG Web Network conference. The aim was to link via Twitter ahead of the event – and to muck about with Google’s maps and spreadsheets. Here’s one for this year.
I had intended to use Google Fusion Tables, a tool purpose-built to import and visualize table data online. (It made light work of this visualisation of RTA speed camera locations, ripped from an RTA PDF.) But from the get-go I couldn’t import my spreadsheet from Google Docs. Maybe the service is too beta.
Here then are the steps taken to create the #LGWN tweeps app:
=ARRAYFORMULA(Sheet1!A:E) then run a function in the neighbouring columns to return latitude and longitude (with some randomisation to prevent markers stacking directly on top of each other if two tweeps are in the same location)I chose to geocode within the spreadsheet because I was too timid to tackle the new Geocoder class in the Google Maps API.
I used the CONCATENATE function to construct a URL from the stem http://maps.google.com/maps/geo?output=csv&q= and the user’s location (suburb, town/city, country). For example, copy this URL into your address bar:
maps.google.com/maps/geo?output=csv&q=Darlinghurst,Sydney
The ImportData function runs this URL and adds the result to neighbouring columns. Note the limit of 50 ImportData functions per spreadsheet.
When building the markers on the map, it was easy to grab the user’s profile picture and description from Twitter via their API. Try this URL with your screen name:
http://api.twitter.com/1/users/show.xml?screen_name=[ScreenName]
I generated a generic shadow using Google Maps Icon Shadowmaker although I didn’t anticipate some profile pictures having transparency.
I hope this project shows that anyone with HTML, a search engine and some patience can build tools for fun and on the cheap. It’s a monkey see, monkey do approach. Not very efficient, often frustrating, but you have to get your hands dirty.
See Gabriel Svennerberg for a good introduction to the API, work off the demos at Google and find inspiration at Google Maps Mania.
And if you’re coming to LGWN10, add yourself to the map.
Another string & sticky tape home craft session. See the result. The nice bit is that people can add themselves to the map. Here are the steps taken:
… are generated courtesy of the SPIURL web service. It provides a static link to Twitter profile images.
Over the last few years, I’ve been able to make a case for attending the Web Directions conference in Sydney. Training is rarely inspiring, unless you’re listening to people like Doug Bowman, Joe Clark, John Allsopp, Cameron Adams, Jeremy Keith or Andy Clarke.
But government has its own challenges. It can’t cut corners or take risks like private or business startups (not necessarily a bad thing) and it doesn’t have the benefit of a neutral (at worst) or evangelist (at best) constituency with which to work. So last year’s LG Web Network conference was fantastic.
Prior to the network, supported by the LGSA, I wasn’t unique in having little or no contact with fellow local government web workers in NSW. Professional groups in this field favour IT managers and administrators. Kudos to the prime movers, Diana Mounter, LGSA Design and Development Coordinator, and Reem Abdelaty, LOC&L Program Director.
Registrations are now open for this year’s conference in August.
I’m looking forward to hearing Jason Ryan of the N.Z. State Services Commission on Government 2.0 without the bullshit (my words) and attending the sessions on WCAG and digital recordkeeping. But most of all, talking with LG web people. (And it’d be great if more library people joined the network.)
Register now at WE Believe in Community 09.
I’ve set up a couple of Twitter accounts that aggregate and relay tweets from Local Government Authorities in Australia and their elected representatives:
If you’re a Council (or Shire or Town or Borough…) or a Councillor, follow the relevant Twitter account above, and you’ll be followed back – automatically adding you to the stream.
Credit to Barry Earnshaw in the UK, whose Pipe I cloned.
For more on Oz LG, see:
Are you in local government and work on the web?
Please.