<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi WanMil,<br><br>okay, if you don't want to add two ways, please make sure that <br>access=private also sets mkgmap:truck=no<br><br>Gerd<br><br><div>&gt; Date: Fri, 18 Apr 2014 11:20:02 +0200<br>&gt; From: wmgcnfg@web.de<br>&gt; To: mkgmap-dev@lists.mkgmap.org.uk<br>&gt; Subject: Re: [mkgmap-dev] [PATCH v1] Rework of inc/access<br>&gt; <br>&gt; Hi Gerd,<br>&gt; <br>&gt; &gt; Hi WanMil,<br>&gt; &gt;<br>&gt; &gt; besides the error reported by Stéphane here are my 50 cents after a first<br>&gt; &gt; compare<br>&gt; &gt; with the unpatched default style:<br>&gt; &gt;<br>&gt; &gt; I am not sure, but I think tags like<br>&gt; &gt; vehicle=private, motor_vehicle=private etc.<br>&gt; &gt; should not set<br>&gt; &gt; mkgmap:emergency=no<br>&gt; &gt;<br>&gt; &gt; My interpretation regarding routing is that<br>&gt; &gt; it is equivalent with xxx=destination,<br>&gt; &gt; so it should set the no-throughroute bit.<br>&gt; &gt;<br>&gt; &gt; Reason:<br>&gt; &gt; If one wants to visit someone living at a private way, we can assume that<br>&gt; &gt; he is allowed to go there. On the other hand, a route restriction<br>&gt; &gt; like a no_left_turn might be ignored if the road in the img file<br>&gt; &gt; doesn't allow any vehicle.<br>&gt; &gt;<br>&gt; &gt; The problem : We have only one no-troughroute bit for each road segment, so<br>&gt; &gt; a way with highway=*, access=private, bicycle=yes,  foot=yes<br>&gt; &gt; has to be added as two roads, one with acces for all vehicles except bike<br>&gt; &gt; and no-throughroute=true,<br>&gt; &gt; the other with full access for bikes and pedestrian.<br>&gt; &gt; This can't be done in the finalize rules, right?<br>&gt; <br>&gt;  From my point of view duplication of ways should be done only if there <br>&gt; is a very hard reason for it.<br>&gt; I don't see the case here. Private ways are private and should not be <br>&gt; used by anyone. Emergency vehicles should not use it anyhow. In case the <br>&gt; private way is the target Garmin will ignore the access bits (as far as <br>&gt; I know) and will route over the non accessible way.<br>&gt; <br>&gt; Anyhow I think I haven't fully understood what the throughroute bit means.<br>&gt; <br>&gt; Having the following road network:<br>&gt; S<br>&gt; |<br>&gt; 1=======2====T==3<br>&gt; |               |<br>&gt; |               |<br>&gt; 4---------------5<br>&gt; <br>&gt; S = starting point<br>&gt; T = target point<br>&gt; &lt;number&gt; = start/end point of a road segment<br>&gt; |- = usual road (nothroughroute bit not set)<br>&gt; = = road with nothroughroute bit set<br>&gt; <br>&gt; How does Garmin route?<br>&gt; Does it choose the direct way over the two nothroughroute ways (S-1-2-T)?<br>&gt; Or does it choose the detour (S-1-4-5-3-T) because it does not route <br>&gt; over adjacent ways with the nothroughroute bit set?<br>&gt; <br>&gt; WanMil<br>&gt; <br>&gt; &gt;<br>&gt; &gt; Gerd<br>&gt; &gt; Gerd<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; WanMil wrote<br>&gt; &gt;&gt; Hi,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; attached is a reworked inc/access file.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; It now uses a 1:1 assignment between OSM tag and mkgmap access tag:<br>&gt; &gt;&gt; foot=*       { set mkgmap:foot='${foot}' }<br>&gt; &gt;&gt; bicycle=*    { set mkgmap:bicycle='${bicycle}' }<br>&gt; &gt;&gt; motorcar=*   { set mkgmap:car='${motorcar}' }<br>&gt; &gt;&gt; goods=*      { set mkgmap:delivery='${goods}' }<br>&gt; &gt;&gt; hgv=*        { set mkgmap:truck='${hgv}' }<br>&gt; &gt;&gt; bus=*        { set mkgmap:bus='${bus}' }<br>&gt; &gt;&gt; taxi=*       { set mkgmap:taxi='${taxi}' }<br>&gt; &gt;&gt; emergency=*  { set mkgmap:emergency='${emergency}' }<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; motorcycle is no longer used. There is no clean solution when motorcycle<br>&gt; &gt;&gt; != motorcar. The default style supports motorcars. Users that want to<br>&gt; &gt;&gt; use the cards especially for motorcycling should modify their inc/access<br>&gt; &gt;&gt; file appropriately.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; delivery is no longer used. It is not an access key. The wiki notes:<br>&gt; &gt;&gt; The key delivery is mostly used with the value yes to indicate that the<br>&gt; &gt;&gt; restaurant offers delivery of your meal.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; More access keys are used. They are taken into account obeying the rules<br>&gt; &gt;&gt; of vehicle subclasses (set motorcar=no if motor_vehicle=no or vehicle=no<br>&gt; &gt;&gt; etc.).<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; The old rule<br>&gt; &gt;&gt; highway=path { add foot=yes; add access=no }<br>&gt; &gt;&gt; did not work for the way [highway=path; access=no]. This way should not<br>&gt; &gt;&gt; be used by foot anyway but the rule above errorneously allowed foot.<br>&gt; &gt;&gt; This is fixed now.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; carpool handling is now disabled. It does not work (as far as I know) so<br>&gt; &gt;&gt; the rules are not useful.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Many thanks to Mario Hantschke who worked out some problems of the old<br>&gt; &gt;&gt; access file and provided some good ideas for the new rules.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Please check the new rules. If you are unhappy with some assignements<br>&gt; &gt;&gt; please post an tagging example of a way and how you think the access<br>&gt; &gt;&gt; rules should be assigned.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Have fun!<br>&gt; &gt;&gt; WanMil<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; mkgmap-dev mailing list<br>&gt; &gt;<br>&gt; &gt;&gt; mkgmap-dev@.org<br>&gt; &gt;<br>&gt; &gt;&gt; http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; access (3K)<br>&gt; &gt;&gt; &amp;lt;http://gis.19327.n5.nabble.com/attachment/5803532/0/access&amp;gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; View this message in context: http://gis.19327.n5.nabble.com/PATCH-v1-Rework-of-inc-access-tp5803532p5803542.html<br>&gt; &gt; Sent from the Mkgmap Development mailing list archive at Nabble.com.<br>&gt; &gt; _______________________________________________<br>&gt; &gt; mkgmap-dev mailing list<br>&gt; &gt; mkgmap-dev@lists.mkgmap.org.uk<br>&gt; &gt; http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br>&gt; &gt;<br>&gt; <br>&gt; _______________________________________________<br>&gt; mkgmap-dev mailing list<br>&gt; mkgmap-dev@lists.mkgmap.org.uk<br>&gt; http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                               </div></body>
</html>