Sunday 17th August 2008

Hill Colouring on the Cycle Map

Hill colouring

Last week, in amongst a bit of a hosting problem, hill colouring went live on the cycle map. And it looks awesome!

Having something more pleasing than a flat grey background really helps put flesh on the skeleton of the contour lines, but it means that some stuff needs tweaking to fit. You can see the lovely new forest and wood styles on the image below - my very own forest pattern symbol, with a subtle green tinge and a solid border. The same area before can be found (here).

After hill colouring

But wait - there’s more! In city centres, cycle routes can get quite complicated, and in some places have to go down one-way roads. You then end up with links that are only supposed to be followed in one direction - if you go the other way you might end up facing a no-entry sign (that you’re not really supposed to blithely ignore, politicians too for that matter). So you might end up with a confusing array of cycle routes, such as in central London:

Directional cycle routes - before

… but no longer. The swiss-army-knife-like ‘relations’ to the rescue, which can give pointers as to which way you’re supposed to go. That gives us …

Directional cycle routes - after

(Click the pictures for more detailed lovelyness!)

But wait, that’s not all. Maybe your area doesn’t have any signed cycle routes and no cycle paths either. Or maybe you’ve got both, and also want cycle lanes marked. A nice little bit of blue casing on either side of the road shows which streets have cycle lanes.

Cycle Lanes

And finally, the icon wizardry of Matt Amos has helped me out with showing more useful points of interest - we now have drinking water locations shown (here in Trento, Italy):

Drinking water

… which are probably a better idea than going to a pub. But what’s better than going to a pub for a nice refreshing beer? Well a pub with free wifi, of course!

Free Wifi

And there’s been a million and one places added to the cycle map too, but far, far too many for me to list here. Enjoy!

Thursday 14th August 2008

Cyclemap problems

It appears that our hosts for the cyclemap, hostmonster.com, are playing silly buggers with it, and I don’t know why. I’ve no idea if or when it’ll be back again, but I’ll try to let everyone know.

Update: It’s back up now, and I’m resuming the update for this weeks tiles. Happy mapping!

Thursday 29th May 2008

Look ma, no hands!

It’s becoming more and more widely accepted within OpenStreetMap that what we call ‘routes’ are best described with relations, instead of tagging the ways. It means that we can have two routes sharing the same stretch of road without any conflicts over numbering and so on. It’s become well established in cycle-tagging, but I’m interested to see if it works elsewhere in different contexts.

During the first May bank-holiday weekend Dave and I scratched an itch that had been bothering me for a while. There are a few long distance paths through London, and the two that I’ve frequently come across are the Capital Ring and the London Loop, but we’d made no effort to join up the bits we had spotted. We set off to find the route of the Capital Ring from Wimbledon Common to Wimbledon Park, and accidently ended up following it all the way to Woolwich on the other side of the city.

So combining both the relations contexts and the Capital Ring expedition led me to try to render them, to see if it works. And it pretty much does. Dave had been tagging some bus routes during the development of Potlatch’s relations handling code so I rendered them too. And lo and behold, other people have been doing the same here and there.

London overview (click the picture, then the all sizes link to see it in full):
bus and ldp demo

Around Earlsfield:
Capital Ring through Earlsfield

Bus routes around Wandsworth:
Wandsworth Buses

And the title of the post? Well, it’s not only that I was practising my (currently abysmal) cycling skills, it’s also what I say when I’m experimenting without having thought things through beforehand. No prizes for spotting which map I ripped off for the style sheets! Currently I don’t have any plans for making this a full service like the cycle map, which is still my main focus.

Wednesday 21st May 2008

Hill Shade Teaser

Time for another glimpse behind the scenes in the Cycle Map development!

Hill Shade Teaser

Elevation colouring! Hill Shading! How cool is that? (N.B. If you ever hear me asking, then the answer is one of ‘very’ and ‘awesome’. ‘Meh’ is a valid response, but don’t let me hear you saying it!)

Now for all the OSM types there’s a few caveats. The last time I posted a teaser (for contours) it took me six months to get things working properly. And there’s plenty of things need fixing before the hillshading will go live, like some resolution issues, tiling issues, a minor problem involving the ocean shapefiles and so on - never mind choosing some colours that are a bit more subtle. So be patient!

Monday 24th March 2008

More cyclemap stuff

As usual, when the frequency of posts declines here, that just means there’s more interesting things going on in the real world! I’ve also been trying to avoid writing yet another OSM post, but hey-ho, here’s an update on the cycle map.

Lots more areas are now rendered since I blogged a month ago. Lyon, Vienna, Toronto, Vancouver, Antwerp, Almere, Neuss, Frankfurt, Furth, Karlsruhe, Berlin, Leuven, Bonn and Sydney have all been added along with overviews of some other countries. If there’s somewhere else that you reckon could do with some more zoom levels, just leave a comment or send me an email.

Shelters are now rendered as can be seen in the forests near Bonn, and bike parking has been changed so that small capacity cycle stands show up as blue dots and only larger capacity bike parking areas show quite so predominantly! Previously, it could get quite cluttered as you can see when Tom Chance mapped the cycle parking around the parliament buildings in London. The changes were only partially implemented (or more accurately, I messed up some of the mapnik rules :-) ) so you’ll need to wait a couple of days to see them working properly.

Also fixed was a UTF8 bug in the relations-handling code that meant that some recently-added routes weren’t showing up properly at low zoom levels. We’ve also moved all the contours to the postgis database and stopped pre-rendering them - it turns out the IO hit of loading the transparent contour tiles from disk is greater than just re-rendering them for high zoom levels, and since most of the tiles are high zoom, that’s where the time matters most.

Monday 18th February 2008

One Leg Longer than the Other

contours

Contours are something that people have repeatedly asked me about - it’s even the closing subject on my radio interview a couple of weeks ago. This weekend I finally knuckled down and got to the bottom of a few outstanding problems (with thanks, as ever to Dave), and from today the cycle map takes a great leap forwards with world-wide contour coverage - well, “world-wide” as in everywhere that’s rendered on the cycle map.

Some of the highlights:

I’m really pleased with the way they’ve turned out, and I think this marks a step-change in functionality for cyclists planning their rides (or consoling themselves afterwards!). It does, however, take quite a lot of processing to generate these - it’s not for the faint-hearted or anyone without a quad-core machine overflowing with RAM and hard-disk space! The eagle-eyed amongst you may notice that all the roads have been tweaked and are more colourful now, but it’s still a cycling-focused map.

For those of you intrigued by the title - it comes from spending many years climbing up, down, and around mountains in Scotland - walking around the side of a mountain is known as “contouring” and gets pretty tiring after a while. Having adjustable legs would have been really helpful.