Hi Greg & Gerd

Yes, this is what I mean, more or less. I don't know what the OSM
tagging policy is on applying maxspeed tags to every road, but mkgmap
applies its own limits based on highway type to everything except
motorway, and this patch now does motorways as well. There are a couple
of other countries that don't have max speed limits on some roads and I
haven't bothered with them explicitly, but if the road is tagged with
maxspeed/:practical/:advisory that is above 120kmh than it won't be
limited.

patch attached.

Ticker

On Wed, 2020-07-08 at 20:14 -0400, Greg Troxel wrote:
> Ticker Berkin <rwb-mkg...@jagit.co.uk> writes:
> 
> > It also needs something at the end to limit motorways for most
> > countries:
> > 
> > highway=motorway & mkgmap:road-speed-max!=* & mkgmap:country!=DEU
> >     {set mkgmap:road-speed-max=6}
> 
> Do you mean
> 
>   Except Germany, most/all countries have speed limits on motorways,
> but
>   some of them don't have explicit tags in OSM.  While this is a bug
> in
>   the data and should be fixed, mkgmap ought to do something sensible
> 
> more or less?
Index: resources/styles/default/inc/roadspeed
===================================================================
--- resources/styles/default/inc/roadspeed	(revision 4557)
+++ resources/styles/default/inc/roadspeed	(working copy)
@@ -14,6 +14,9 @@
 #  0         |  3 mph /   5 km/h
 #
 
+maxspeed:advisory=* {set maxspeed='${maxspeed:advisory}'}
+maxspeed:practial=* {set maxspeed='${maxspeed:practial}'}
+
 maxspeed=walk                   { set maxspeed=10 }
 maxspeed~'.*:living_street'     { set maxspeed=10 }
 
@@ -40,3 +43,5 @@
 maxspeed=* & mkgmap:road-speed-max!=* & maxspeedkmh() <= 120 { set mkgmap:road-speed-max = 6 }
 # mkgmap:road-speed-max = 7 has no effect 
 #maxspeed=* & mkgmap:road-speed-max!=* { set mkgmap:road-speed-max = 7 }
+
+highway=motorway & maxspeed!=* & mkgmap:road-speed-max!=* & mkgmap:country!=DEU {set mkgmap:road-speed-max=6}
_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to