Archive for the ‘Uncategorized’ Category
I’ll still be posting on general opendata issues here, but for OpenlyLocal-specific stuff, bookmark,subscribe or follow @OpenlyLocal (and for OpenCorporates, see its dedicated blog and twitter account).
Here are my slides from my keynote at the 2011 Open Government Data Camp in Warsaw last week, entitled “How The Open Data Community Died: A Warning From The Future”. The presentation is CC-SA-BY licensed so feel free to download and distribute.
I’m at the excellent TalkAboutLocal unconference and decided yesterday afternoon if I could come up with something that’s been long-requested: a widget that allows you to put council info from OpenlyLocal on your website, specifically forthcoming council meetings for any of those 100+ councils we’re holding info for.
Well, I did it. It’s experimental. But it works. And it should take no more than 2 minutes to do. Here’s what it looks like (thanks to the excellent Philip John at The Lichfield Blog for trying it out):
And this is what you need to do to install it. Paste the following code in to a sidebar, box, or anywhere you like on your website*.
Replace the number on the second line after ‘council_id=’ with the OpenlyLocal id for the council (which is the number at the end of the URL for the council, e.g the above one is for Birmingham City Council – we’ll be making this process easier shortly). We’ll also be adding more features, and best of all you won’t have to do anything; the widget will update automatically. And that’s it. A doddle.
Why was it important that the UK government open up the geographic infrastructure? Because it makes so many location-based things that were tortuous, almost trivial.
Previously, getting open data about your local councillors, given just a postcode, was a tortuous business, requiring multiple calls to different sites. Now, it is easy. Just go to http://openlylocal.com/areas/postcodes/%5Byourpostcodehere%5D and, bingo, you’re done.
You can also just put your postcode in the search box on any OpenlyLocal page to do the same thing. And, obviously, you can also download the data as XML or JSON, and with an open data licence that allows reuse by anybody, even commercial reuse.
There’s still a little bit of tweaking to be done. I need to match up postcodes county electoral divisions, and I’m planning on adding RDF to the data types returned. Finally, it’d be great to show the ward boundaries on a map, but I think that may take a little more work.
One of the things I’ve had on my ToDo list for OpenlyLocal for a while was providing a a list of links to online services provided by each Local Authority.
Seemed like something that should be on the site, and available as structured data; it also looked like it should be fairly easy to do, as it’s a service that’s sort of provided by central government (LocalDirectGov), though with some shortcomings.
The problem is that from a usability point of view the Local DirectGov interface is a bit clunky. First you choose the service you want the link for, which means using an A-Z (always a bit of a problem). This is the landing page, and as you can see you’re on the A’s.
So let’s say you want Hazardous Waste. Is that under H or W? Actually it’s under W, so click on W, and then on “Waste – Hazardous” and a new window opens (why?). You then need to enter your postcode, town or council in a form and you’ll then be (usually) given a link to click through to get to the council page.
However, depending on what you put in there and what category you want you may be asked to choose a particular council or be told that you council does not provide the service online:
Now there is a limited way for external websites to interact with this service, using the ‘white-label’ Local DirectGov application. There’s even a case study. Basically, you download a list of services provided by each type of council, and then build a LocalDirectGov URL, which redirects to the council service.
Terrific. Not hard to do, even for a coder as slow as me. The only problem is that it doesn’t work. For the end user that is.
The thing is, there’s no way of knowing whether the local authority actually provides a given service online, and there’s a fair chance that the URL you’ve just built up will resolve to a bog-standard contact page, or even worse non-existent page resulting in a 404 error. Not great for users, and there appears no way of programmatically finding out if link will work, even though it’s there in Local DirectGov’s database (which is how it says that the service isn’t provided).
So, we’ve tried to fix on OpenlyLocal this and provide a better version. First we’ve collected up the useful data for each authority (i.e. where there’s a specific page to that subject, and not a 404 or generic “contact us” page). Then we’ve put it all on one page, and made it searchable too. It’s clean, simple, and works:
Finally, you can access the data through the API as XML or JSON. So far, we’ve done a little over half the local authorities, and should have all the rest done by sometime next week (it’s just a matter of tying the remaining local authorities to their LocalDirectGov IDs, which has to be done manually).
As ever, comments, bug reports and feature requests welcome.