Monday, 31 October 2011

Wifi coverage maps

I have been working on a small project for a Community Interest Company who deliver Fi-Wi and who want to display the coverage area of their wifi. They want to show the coverage as bands for their speed of connection: 10Mb, 20Mb, 30Mb etc. They cover a number of areas across the country, especially rural areas. I needed to display a polygon over an OSM map. Their website already has a map on it, using Cloudmade tiles, but with no coverage area on it yet. I took a look at GeoJSON as a way to handle description of polygons and looked at the way OpenLayers handles it. I created a GeoJSON feature collection by hand and tried to display it with OpenLayers. After a frustrating couple of hours I hadn't persuaded it to display my polygons, so I turned to Leaflet. In a few minutes, starting from scratch, I had a map with my polygon on it.

I needed to manage many polygons so I created an AJaX feed to send a GeoJSON feature collection for a bounds box. That way when a map is displayed any of the polygons that should appear on it get sent for that map. The coverage polygons are stored in a database with their maximum extents for north, south, east and west which can them be used to decide which polygons are served for the current bounds box of the displayed map. As usual AJaX is quick and effective. Debugging is fairly easy too since a call to the AJaX server returns a GeoJSON file which is easy to read.

The remaining job was to create a polygon editor so the guys who manage the website can manage the shape of the polygons easily as well as adding new ones as their business expands. This was more intricate, though I'm not sure that I have yet done as much as I would like.

I've enjoyed working with this problem, I hope it helps the company. It has also convinced me that Leaflet is a much more pleasant way to display maps with overlays than wrangling OpenLayers, which may be powerful and very flexible but it always causes me problems.

Saturday, 29 October 2011

Chasing names

There is a list of roads sorted by county that compares the names on OSM maps to the names on the OS OpenData Locator. Chasing the names to get 100% is a bit phoney, but using OS Locator to find what is missing and especially if something has been added since the last OSM survey is very good. However much I think the name chase is phoney or even invites people to add stuff to OSM that isn't correct or surveyed, to make use of the idea that OS Locator help find new stuff, first you have to get a clean state to work from. The simplest clean state is to survey all of the roads that show up as anomalies and resolve the anomalies. In the process you see more details to add and things that have changed, such as closed pubs. I only add what I have seen for myself, though I will use aerial imagery and OpenData to assist with things like just what is the extent of that playing field that I now have the name of and can see is in use. Using OS Locator names for roads where the name board is not present is sometimes an exception, in that I have not seen the name, but I use it anyway. I do of course credit OS with a source:name tag.

Today we focussed on the southern part of the Holderness plain in East Yorkshire. It is a fairly flat area, with fertile aluvial soils making farming productive. The southern edge borders the Humber estuary which is miles wide at this point. Today the tide was out and the huge expanses of mud flats were exposed, which is what the wading birds like to feed on. The wild life is worth looking out for. It was a lovely place to take a break.

My aim is to clear Holderness steadily from the south, working past Withernsea towards Hornsea. I was contacted in the week by Stephen who mapped the whole of the town of Withernsea and then went quiet. He has now accepted the new licence which is very welcome; instead of starting again with Withernsea we can build on his good work and concentrate of places that need surveys, like Hornsea.

Saturday, 22 October 2011

Kilham

A bright, fairly sharp day tempted us out. I set off to check a few names in the Wolds village of Kilham, and in the end just about redrew it. The existing work was by a few people who had added bits that didn't join up, were very, very, approximate and had loads and loads missing. Most road names were missing even though there were clear names on every road. There was a name issue near the school. One end of the road has a board showing "Millside", the other "Mill Side". There is a change of speed limit on the road, so each end gets the respective name.  It took a while, but it was a pleasant place to be. One thing us OSMers like is to find a substantial road that is missing. Seeing that GPS trace meander across an empty space is satisfying and today it happened twice for country roads, once where a rural road was marked as a bridleway and lots of times for small residential roads.

I usually draw areas such as sports grounds and school fields from Bing imagery when I can, but a very new recreation ground was just a field on Bing. I had to guess how much of the field was taken. There was also a short road with a few brand new, empty bungalows on it. The road has no name board and doesn't appear on OS Locator, so I left a fixme for the name.

On the way home I we passed some road works, with a footpath / cycle lane next to the road. There was a sign giving orders to cyclists. Clearly the person who erected the sign doesn't know the rules.

Tuesday, 4 October 2011

The end of the strangely warm start to October saw us out onto the Holderness Plain looking for names of roads and any other stuff worth improving. Once again we discovered a road name that Ordnance Survey have just made up without checking what is really there. There is a road called Fox Covert Road just north of Otteringham. There is a sign which is not new, but is perfectly readable.

OS call the road Whinhill Road. The road is a minor lane which only goes to a couple of farms, the second of which is called Whinhill farm, so I guess that's where OS get the name from. Nearby OS show a road called North End road and there is a farm called North End Farm too, this time no sign boards to confirm or deny this. The road from Otteringham is called Station Road because it headed to the abandoned station on the Withernsea line, which fell under Dr Beeching's axe. The place where the name changes to North End Road is not clear, but near the farm seems a good idea. I suspect the road may have been called North End Road long before part of it was called Station Road, but I can't be sure.

Monday, 5 September 2011

Of drain pipes and a polar bear

The junction of Princes Avenue with Spring Bank and Spring Bank West in Hull has changed a lot over the years. There used to be railway line scything across the junction but Dr Beeching saw that closed down. It ran to Hornsea and part of it is now the NCN 65 cycle track, though not until further east in Hull. On the south side of the junction was one of the first botanical gardens in the country, that has since become Hymers College in about 1890. The railway crossing was known as the Botanic Crossing long after the gardens had become academic. The road junction used to be a police- then traffic warden- controlled junction before traffic lights took over. The shape of the junction was better suited to human control than traffic lights, but it has taken thirty-odd years to redesign the junction to be better suited to the lights.

In nearby Beverley Road there used to be a pub called the Zoological Hotel marking the zoological gardens on the north side of Spring Bank. The pub shut down in the mid eighties. In the mid nineties the name was revived; the Old Zoolgical pub was built to replace the Botanic Station building. The station car park was where the coal yard used to be for the railway. The new pub, called the Old Zoological, is nearer the zoo than the old pub was.

The shape of the buildings shows how the road from Princes Avenue curved gracefully into Spring Bank West, to avoid the railway crossing. The old name boards survive on the wall, either side of a drain pipe which seems to mark the change. The place now doesn't seem to be quite the right place for the street name to change because of the new layout of the road, but the addresses of the buildings haven't changed so the drain pipe marks the boundary.

Close by is The Botanic pub, which also marks the existence of the long gone botanical gardens. Opposite the aforementioned zoological gardens was the Polar Bear pub, named after an inhabitant of the zoo. Sadly, the Polar Bear pub stands empty today, The Botanic looks like it might be going the same way but the Old Zoological seems to be thriving.

Sunday, 21 August 2011

New roads and a castle

As the coverage of OSM improves, it is harder and harder to find roads other than small residential ones in East Yorkshire that are not in the database at all, but we found one today. It's always satisfying to see the red trace extending across the GPS in open space, showing it's a new trace.

We went to Skipsea, just south of Bridlington to see what was missing, quite a lot as it turns out. The previous mapper (tracer?) had used unclassified for residential roads, there were no road names, amenities like the pub, church, shop and school were all missing as well as most of the small residential roads, but of course it looked complete at a glance.


On the outskirts of Skipsea is a Norman church, All Saints. It was built fairly soon after the Norman conquest along with Skipsea Castle. The castle was a classic motte and bailey affair and all that remains today is the mound, now operated by English Heritage. The castle was built by 1086 but demolished on the orders of Henry VIII. Next time we're there I'm going to walk to the mound and take a closer look.

Tuesday, 26 July 2011

A bit more cycle route

We discovered a section of cycle route signed with the NCN signs with the number 164. It seemed to be a newly opened route with the number 164. It seems to be part of a route designated the Yorkshire Wolds cycle route, but I didn't understand the numbering system.

We had followed a section from Beverley to South Newbald (see last post), so yesterday we then picked up from there, following the route onward. It headed through South Newbald and through North Newbald before turning up a rural lane called Stoneknowle Hill. The local council started to use a specific style of road sign about a year or so ago, so new signs are easy to spot and this sign is one of them. The road did not have a name tag in OSM, so I was pleased to add it.

The cycle route then leaves the road for a rather stony track, that in wet weather might also be rather muddy. This seems to be the only way of keeping the route off the A1034, which is not the safest road to cycle on. Another short stint on a quiet road and the route then crosses the A1079 - the main road from York to Hull which can be busy and carries fast-moving traffic.

Where did the 164 go?
The route coasts down a quiet road towards the disused railway line that runs from Beverley to Market Weighton which now carries the Hudson Way.  At the T junction under the old railway bridge there was an NCN sign but not for the NCN164, only for the NCN66. I guessed which way to go and followed the signs for the NCN66 towards Market Weighton, but then realised that the signs had the 66 label on them but also Yorkshire Wolds. This is where the confusion lay and I only sorted things out in my mind when I had got home. The cycle route is called the Yorkshire Wolds Cycle Route, but it uses various numbered routes, including the 164, 66 and 1.

The route goes through Market Weighton, climbs towards Londesborough and into Pocklington following the NCN 66, before striking out again on NCN 164 again. At this point it is joined by the Way of the Roses, which is a coast-to-coast cycle route. This is the best part of the Wolds route by far, meandering through the rolling hills and valleys around Millington and up to the village of Huggate. Near Huggate we found a sign for another cycle route, NCN 167, which was signed as going to Malton, but exactly what the route is I don't know, so there's another journey to investigate. The NCN 164 now drops down a long gentle slope to Tibthorpe, which is where we left it to head for home.

Marbled white
Clustered bellflower
The route was very well signed, once I'd understood that it wouldn't be signed with the same number throughout. The scenery in the Wolds is wonderful, with views through the hills and out over the Vale of York and the Holderness plain. We saw some birds, including yellowhammers, linnets, swallows and goldfinches. We watched a marbled white butterfly flutter through the flowers, which included a clustered bell flower.

I would recommend a visit and I really look forward to investigating the rest of the route and the other route too.