English Counties and UAs in One

Great Britain’s administrative geography is rather complicated, particularly for England – some English areas are “three tier”, made up of counties which are subdivided into districts, and others are “two tier” consisting of unitary authorities. Then there’s London’s boroughs which are in a special category of their own as part of an authority.

The Ordnance Survey Open Data release (easy download page here) includes BoundaryLine, which includes the geography data file for the counties, and a separate for the districts, UAs and boroughs. The latter is complete (and also includes the Scottish and Welsh regions), but the former looks rather strange on a map, with “islands” of counties separated by a “sea”.

I received a request by someone who was interested in having a unified file, at county level for the non-GLA counties, but including the UAs and London boroughs to “fill in” the map. I’ve made such a file by doing a dissolve in Quantum GIS (the districts having the county name as an attribute), and it can be downloaded here (15MB zipped shapefile.) The data is derived from and therefore covered by the OS Open Data licence which requires simply that the original source must be attributed when using it – that is, the data contains Ordnance Survey data © Crown copyright and database right 2010.

The image above is showing the merged data, with the unmerged district data (dotted lines) superimposed.

London Cycle Hire Vis – New Colours and Stats

I’ve made a couple of enhancements to my live London cycle hire map – you can now choose from several colour sets. A couple of the sets also change the circle sizes, so that these correspond to the number of bikes (or spaces) rather than the dock size. This means the circles grow or shrink as the bikes get used, rather than remaining static as before.

Using value-based colour ramps and/or circle size changes, rather than the standard hue-based colour ramp, are are a more “correct” way to show quantitative data graphics such as the hire map, as the data values aren’t distorted by “colour bias” (where a particular hue has more of an impact to the viewer).

I’ve also added a couple of panels to show how busy the hire scheme currently is, and how this compares to the same time 24 hours ago, and added a ticker which lists changes as they happen (e.g. docks becoming full or emptying quickly), in the style of the old BBC Grandstand vidi-printer.

Very few people have been using the bikes to commute home this evening (and yesterday evening) as it’s been raining a lot here in London! We have a weather station here at CASA, with historical data, so it should be possible to quantify the relationship between how hard it’s raining and what proportion of people decide to try another way to get home.

24 hours of London Cycling

[A final word on my cycle hire visualisation - which you can see here.]

James has posted a video showing how the colours (i.e. bike usage patterns) changed during Wednesday – a typical day with good weather (so high usage) and sharply defined rush hours. The video shows one hour every second and starts at midnight (so look out for the main changes at 9s and 18s in.)

Another quirk is a characteristic move from red to purple of several stations overnight (i.e. in the first 5s of the video) in the northern edge of the zone, i.e. around Angel, travelling from east to west. A redistribution vehicle at work?

Today’s evening rush hour is showing quite a different pattern – a much less pronounced spike in usage, spread out over a longer time interval. This is probably because of the rain showers this afternoon and correspondingly damp roads, but possibly because Thursdays are traditionally team drinks nights in the City for many people, and so people will either be delaying the journey home, or deciding not to take the bike at all after a few drinks (not a bad idea really.) Certainly I’ve noticed a large difference in the numbers of people spilling out of the traditional City drinking dens on Thursday (and to a lesser extent Friday) evenings, compared with Monday-Wednesday.

Aidan’s sparklines, showing yesterday’s data as grey lines and today’s in orange, show this lag effect strikingly.

Neal Lathia, a research fellow here at UCL alerted me to a study carried out on usage patterns of a very similar scheme in Barcelona – even the dock numbers and scheme shape match London – clustering and categorising docking stations based on their usage patterns. Their method of data capture is also very similar to what I’m doing and the resulting dataset should lend itself to an equivalent categorisation in London. Things will only get more interesting when “casual” (i.e. non-registered) users get access to the scheme, which may happen next month, and new user types, such as foreign tourists, get involved, and the seasons (and weather) will also probably play a part, as different user types have different levels of willingness to use the system based on daily conditions.

The BBC’s Tom Edwards has an interview with the operators of the scheme, which includes at one point a screenshot of the internal (Google-maps based) map used by them to see what docking points are on their way to becoming full or empty.

London Cycle Hire Visualisation

I’ve created a visualisation of how the TFL Cycle Hire scheme in London is being used – the so-called “Boris Bikes”. Around 4000 bikes have been placed in 400 cycle parking stands in the centre of the city, and people have been using them to get from A-B.

Some distinctive if not entirely surprising patterns have appeared already – with heavy usage (~10% of total bikes out on the streets) during the rush-hours, which occur in a strikingly small time interval – a narrow, sharp dip appearing only between 5:30pm to 6pm. Usage is much less in rainy weather, such as has happened today, and weekend use is both lower, and quite different in “shape”. During weekday days, the City tends to have a lot of the bikes, while in the evening, the bikes end up at the cycle parking stands near the big terminal train stations and in Pimlico in the south-west of the area – probably the biggest residential area covered by the scheme, and also a popular place for city workers to live…


10am Tuesday: Straight after a sunny morning rush-hour, before redistribution kicks in – many of the central stands are now completely full of bikes (red with yellow borders.)


8pm Tuesday: A typical evening pattern – the bikes are on the edge, and at the terminal stations, particularly around Waterloo and King’s Cross, while the centre is short of bikes…

The visualisation consists of coloured dots, which change from blue to red as each stand fills up with docked bikes. A purple dot indicates a half-full stand. The size of the dots corresponds to the total capacity of the stand.

You can click on a stand’s dot to see information about its current status, as well as its use over the last 24 hours, represented as a minimalistic graph. A graph of overall usage can also be viewed. Both get updated as the new data comes in.

The data comes from TFL’s own map of the stands in central London, and is updated at source typically every six minutes – my own visualisation updates every two minutes, so you should never be more than ten minutes out of date, looking at the map.

The background is a bespoke render of central London, from OpenStreetMap data.

See it here.

Here’s how the total number of available bikes has fluctuated, since Friday morning (click for larger version):

[Update: Some articles about the visualisation - Telegraph, Londonist, Road.cc, Real Cycling, Bikeradar]

OpenStreetMap 101

I presented this short set of slides to some visiting students from the State University of New York in Buffalo, this morning in UCL CASA, as part of a mini-conference the department organised for them. It’s a simple, visual introduction to the project.

View more presentations from oliverobrien.

Additional notes: Slide 6 is a comparison of OSM, Google and Bing (or Yahoo). In Slide 10, the link is to here (20MB MPG). Slide 18 refers to OpenOrienteeringMap which can be found here. Slide 19 relates to two other visualisations I’ve made, see them here and here – OSM is being used for the background. Slide 20′s screenshots of BestOfOSM show Bern, Gaza City and Berlin Zoo.