
I decided I wanted to show bridges and tunnels on my maps; bridges were easy but I have trouble with tunnels. If I try the following as a catchall for all highways which are tunnels: highway=* & tunnel=yes [0x11501 road_class=0 road_speed=1 resolution 23] Or specifically for each type of highway e.g.: highway=cycleway & tunnel!=yes [0x10 road_class=0 road_speed=1 resolution 23] . . . . . . highway=cycleway & tunnel=yes [0x11501 road_class=0 road_speed=1 resolution 23] The visual results are what I expect: you see the cycleway, then the tunnel, and then the cycleway again. But routing is broken and you are unable to route through the tunnel for any type of highway. If however I do the following: highway=* & tunnel=yes [0x11501 resolution 23 continue] . . . . . . highway=cycleway [0x10 road_class=0 road_speed=1 resolution 23] I see both the tunnel and the cycleway, rather than just the tunnel, but at least I can route through the tunnel. So it seems if you have the test tunnel=yes it breaks routing. Is this expected behaviour? I am using R2328. Cheers, Geoff.

0x11501 is not a routable line type so thats why the routing breaks. Use it as overlay like in your second example, thats's right thing to do.

Thanks Minko, I guess that is why the bridge worked - it was always an overlay. Is there anywhere to say which codes are routeable, or is it try it and see (I guess it needs to be a low number). Cheers, Geoff. Minko <ligfietser@online.nl> wrote:
0x11501 is not a routable line type so thats why the routing breaks. Use it as overlay like in your second example, thats's right thing to do. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Thanks Minko, I guess that is why the bridge worked - it was always an overlay. Is there anywhere to say which codes are routeable, or is it try it and see (I guess it needs to be a low number).
As far as I know only these are routable (except 0x14?) R Hex Description Y 0x01 1 Major Highway-thick Y 0x02 2 Principal Highway-thick Y 0x03 3 Principal Highway-medium Y 0x04 4 Arterial Road–medium Y 0x05 5 Arterial Road-thick Y 0x06 6 Road-thin Y 0x07 7 Alley-thick Y 0x08 8 Ramp Y 0x09 9 Ramp Y 0x0a 10 Unpaved Road-thin Y 0x0b 11 Major Highway Connector-thick Y 0x0c 12 Roundabout N 0x14 20 Railroad Y 0x16 22 Track/Trail Y 0x1a 26 Ferry Y 0x1b 27 Ferry So you can also pick one of the routable lines you don't need and use it for tunnels.

Thanks again Minko, I may have to do some swapping. I think I tried 0x0b before but it did not show in basecamp, but as it's free I'll give it a go. Cheers, Geoff. Minko <ligfietser@online.nl> wrote:
Thanks Minko, I guess that is why the bridge worked - it was always an overlay. Is there anywhere to say which codes are routeable, or is it try it and see (I guess it needs to be a low number).
As far as I know only these are routable (except 0x14?)
R Hex Description Y 0x01 1 Major Highway-thick Y 0x02 2 Principal Highway-thick Y 0x03 3 Principal Highway-medium Y 0x04 4 Arterial Road–medium Y 0x05 5 Arterial Road-thick Y 0x06 6 Road-thin Y 0x07 7 Alley-thick Y 0x08 8 Ramp Y 0x09 9 Ramp Y 0x0a 10 Unpaved Road-thin Y 0x0b 11 Major Highway Connector-thick Y 0x0c 12 Roundabout N 0x14 20 Railroad Y 0x16 22 Track/Trail Y 0x1a 26 Ferry Y 0x1b 27 Ferry
So you can also pick one of the routable lines you don't need and use it for tunnels. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Thanks guys (especially Minko for the second useful e-mail in a week), I now have my maps not only routable, but as I wish to see them as well. Charlie, your web site was one of the ones that got me into making my own maps, thanks for the inspiration. Cheers, Geoff. -----Original Message----- From: Minko Sent: Tuesday, December 11, 2012 6:18 PM To: Development list for mkgmap Subject: Re: [mkgmap-dev] Routing and tunnels
Thanks Minko, I guess that is why the bridge worked - it was always an overlay. Is there anywhere to say which codes are routeable, or is it try it and see (I guess it needs to be a low number).
As far as I know only these are routable (except 0x14?) R Hex Description Y 0x01 1 Major Highway-thick Y 0x02 2 Principal Highway-thick Y 0x03 3 Principal Highway-medium Y 0x04 4 Arterial Road–medium Y 0x05 5 Arterial Road-thick Y 0x06 6 Road-thin Y 0x07 7 Alley-thick Y 0x08 8 Ramp Y 0x09 9 Ramp Y 0x0a 10 Unpaved Road-thin Y 0x0b 11 Major Highway Connector-thick Y 0x0c 12 Roundabout N 0x14 20 Railroad Y 0x16 22 Track/Trail Y 0x1a 26 Ferry Y 0x1b 27 Ferry So you can also pick one of the routable lines you don't need and use it for tunnels. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

The type you've picked for tunnels (0x11501) is not routable. On 11 Dec 2012, at 21:24, "Geoff Sherlock" <geoffrey_sherlock@btinternet.com> wrote:
I decided I wanted to show bridges and tunnels on my maps; bridges were easy but I have trouble with tunnels.
If I try the following as a catchall for all highways which are tunnels:
highway=* & tunnel=yes [0x11501 road_class=0 road_speed=1 resolution 23]
Or specifically for each type of highway e.g.:
highway=cycleway & tunnel!=yes [0x10 road_class=0 road_speed=1 resolution 23] . . . . . . highway=cycleway & tunnel=yes [0x11501 road_class=0 road_speed=1 resolution 23]
The visual results are what I expect: you see the cycleway, then the tunnel, and then the cycleway again. But routing is broken and you are unable to route through the tunnel for any type of highway.
If however I do the following:
highway=* & tunnel=yes [0x11501 resolution 23 continue] . . . . . . highway=cycleway [0x10 road_class=0 road_speed=1 resolution 23]
I see both the tunnel and the cycleway, rather than just the tunnel, but at least I can route through the tunnel.
So it seems if you have the test tunnel=yes it breaks routing. Is this expected behaviour? I am using R2328.
Cheers, Geoff.
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
Charlie Ferrero
-
Geoff Sherlock
-
Minko