<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 Mike,<br><br>I think a possible problem with your patch is that you always add the cycle way<br>with type 0x10, without further checking the attributes of the highway.<br><br>The -make-opposite-cycleways option would add the cycle way with the same type<br>as that for the car.<br><br><br>Gerd<br><br><div><hr id="stopSpelling">From: mike@tvage.co.uk<br>To: mkgmap-dev@lists.mkgmap.org.uk<br>Date: Fri, 6 Mar 2015 00:11:00 +0000<br>Subject: Re: [mkgmap-dev] --make-opposite-cycleways option<br><br><style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:12.0pt;
font-family:"Times New Roman",serif;
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}

.ExternalClass p {
font-size:12.0pt;
font-family:"Times New Roman",serif;
}

.ExternalClass pre {
font-size:10.0pt;
font-family:"Courier New";
}

.ExternalClass span.ecxHTMLPreformattedChar {
font-family:Consolas;
}

.ExternalClass p.ecxmsonormal, .ExternalClass li.ecxmsonormal, .ExternalClass div.ecxmsonormal {
font-size:12.0pt;
font-family:"Times New Roman",serif;
}

.ExternalClass p.ecxmsochpdefault, .ExternalClass li.ecxmsochpdefault, .ExternalClass div.ecxmsochpdefault {
font-size:12.0pt;
font-family:"Times New Roman",serif;
}

.ExternalClass p.ecxmsonormal1, .ExternalClass li.ecxmsonormal1, .ExternalClass div.ecxmsonormal1 {
font-size:12.0pt;
font-family:"Times New Roman",serif;
}

.ExternalClass p.ecxmsochpdefault1, .ExternalClass li.ecxmsochpdefault1, .ExternalClass div.ecxmsochpdefault1 {
font-size:12.0pt;
font-family:"Times New Roman",serif;
}

.ExternalClass span.ecxmsohyperlink {
}

.ExternalClass span.ecxmsohyperlinkfollowed {
}

.ExternalClass span.ecxhtmlpreformattedchar {
}

.ExternalClass span.ecxmsohyperlink1 {
}

.ExternalClass span.ecxmsohyperlinkfollowed1 {
}

.ExternalClass span.ecxhtmlpreformattedchar1 {
}

.ExternalClass span.ecxemailstyle201 {
}

.ExternalClass span.ecxemailstyle33 {
}

.ExternalClass p.ecxmsonormal2, .ExternalClass li.ecxmsonormal2, .ExternalClass div.ecxmsonormal2 {
font-size:12.0pt;
font-family:"Times New Roman",serif;
}

.ExternalClass span.ecxmsohyperlink2 {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxmsohyperlinkfollowed2 {
color:purple;
text-decoration:underline;
}

.ExternalClass span.ecxhtmlpreformattedchar2 {
font-family:Consolas;
}

.ExternalClass p.ecxmsochpdefault2, .ExternalClass li.ecxmsochpdefault2, .ExternalClass div.ecxmsochpdefault2 {
font-size:12.0pt;
font-family:"Times New Roman",serif;
}

.ExternalClass p.ecxmsonormal11, .ExternalClass li.ecxmsonormal11, .ExternalClass div.ecxmsonormal11 {
font-size:12.0pt;
font-family:"Times New Roman",serif;
}

.ExternalClass span.ecxmsohyperlink11 {
color:#0563C1;
text-decoration:underline;
}

.ExternalClass span.ecxmsohyperlinkfollowed11 {
color:#954F72;
text-decoration:underline;
}

.ExternalClass span.ecxhtmlpreformattedchar11 {
font-family:Consolas;
}

.ExternalClass span.ecxemailstyle2011 {
font-family:"Calibri",sans-serif;
color:#1F497D;
}

.ExternalClass p.ecxmsochpdefault11, .ExternalClass li.ecxmsochpdefault11, .ExternalClass div.ecxmsochpdefault11 {
font-size:10.0pt;
font-family:"Times New Roman",serif;
}

.ExternalClass span.ecxemailstyle331 {
font-family:"Calibri",sans-serif;
color:#1F497D;
}

.ExternalClass span.ecxspelle {
}

.ExternalClass span.ecxgrame {
}

.ExternalClass span.ecxEmailStyle46 {
font-family:"Calibri",sans-serif;
color:#1F497D;
}

.ExternalClass span.ecxSpellE {
}

.ExternalClass span.ecxGramE {
}

.ExternalClass .ecxMsoChpDefault {
font-size:10.0pt;
}

.ExternalClass div.ecxWordSection1 {
}

--></style><div class="ecxWordSection1"><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">Hi <span class="ecxSpellE">Gerd</span>, I added the following to the lines file in my style and it works fine there if I remove the --make-opposite-<span class="ecxSpellE">cycleways</span> option, allowing just cycling and walking against the flow. However, it doesn’t seem to work correctly if I add it to the default style (it allows cars to go the wrong way along the one-way street).</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;</span></p><p class="ecxMsoNormal" style="text-autospace:none;"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;">highway=* &amp; (oneway=yes | oneway=-1 | oneway=true | oneway=1 | oneway=reverse) &amp; (oneway:bicycle=no | cycleway=opposite | cycleway=opposite_lane | cycleway=opposite_track) {delete oneway; delete cycleway; set access=no; delete foot; delete vehicle; delete motor_vehicle; delete motorcar; delete goods; delete hgv; delete psv; delete emergency; delete taxi; delete bus; add bicycle=yes; set highway=cycleway} [0x10 road_class=0 road_speed=1 resolution 24 continue]</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">I can’t see why this might be happening. Has anyone any ideas (the attached patch is what I changed)?</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">Regards,</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">Mike</span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;</span></p><div><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm;"><p class="ecxMsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;" lang="EN-US"> Gerd Petermann [mailto:gpetermann_muenchen@hotmail.com] <br><b>Sent:</b> 04 March 2015 16:22<br><b>To:</b> mkgmap-dev@lists.mkgmap.org.uk<br><b>Subject:</b> Re: [mkgmap-dev] --make-opposite-cycleways option</span></p></div></div><p class="ecxMsoNormal">&nbsp;</p><div><p class="ecxMsoNormal" style=""><span style="font-family:&quot;Calibri&quot;,sans-serif;">Hi Mike,<br><br>the style cannot create a way, but it can add multiple routable ways for one OSM way.<br>Use "continue" or "continue with actions" for that.<br><br>The comment is a bit misleading and I think the code for "old-style" is now obsolete as well.<br><br>Gerd<br style=""><br style=""></span></p><div><div class="ecxMsoNormal" style="text-align:center;" align="center"><span style="font-family:&quot;Calibri&quot;,sans-serif;"><hr id="ecxstopSpelling" align="center" size="2" width="100%"></span></div><p class="ecxMsoNormal" style=""><span style="font-family:&quot;Calibri&quot;,sans-serif;">From: <a href="mailto:mike@tvage.co.uk">mike@tvage.co.uk</a><br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>Date: Wed, 4 Mar 2015 16:01:56 +0000<br>Subject: Re: [mkgmap-dev] --make-opposite-cycleways option</span></p><div><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">Hi <span class="ecxspelle">Gerd</span>, I was not clear what you meant by change the style to produce the same result, so I provided a change to the style that with the code changes produces the same result as now. Unless a style can create an extra way, I can’t see how a style can be set up to allow cycling in both directions, but other traffic only in one direction without using the extra way created by the --make-opposite-<span class="ecxspelle">cycleways</span> code. Can a style create a way? I got the list of tags to delete from the following code which suggested that the following lines were all access tags (plus a few tags mentioned elsewhere that I also included):</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">public</span> <span class="ecxspelle">boolean</span> <span class="ecxspelle">init</span>(<span class="ecxspelle">ElementSaver</span> saver, <span class="ecxspelle">EnhancedProperties</span> props) {</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">if</span> (<span class="ecxspelle">props.getProperty</span>("old-style", false)) {</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // the access tags need to be loaded if the old style handling</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // is active and access restrictions are handled by the java</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // source code and not by the style</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"access");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"bicycle");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"carpool");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"delivery");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"emergency");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"foot");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"goods");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"<span class="ecxspelle">hgv</span>");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"motorcar");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"motorcycle");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"<span class="ecxspelle">psv</span>");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"route");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span class="ecxgrame">usedTags.add(</span>"taxi");</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">I gather that route is not an access tag, so I agree that it should not be included.</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">Regards,</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">Mike</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><div><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm;"><p class="ecxMsoNormal" style=""><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;" lang="EN-US"> <span class="ecxSpellE">Gerd</span> <span class="ecxSpellE">Petermann</span> [<a href="mailto:gpetermann_muenchen@hotmail.com">mailto:gpetermann_muenchen@hotmail.com</a><span class="ecxGramE">] <br><b>Sent</b></span><b>:</b> 04 March 2015 05:31<br><b>To:</b> <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br><b>Subject:</b> Re: [mkgmap-<span class="ecxSpellE">dev</span>] --make-opposite-cycleways option</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p></div></div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;">&nbsp;</span></p><div><p class="ecxMsoNormal" style=""><span style="font-family:&quot;Calibri&quot;,sans-serif;">Hi Mike,<br><br>as I said, I'd be more happy to have a patch that remove's the option<br>and shows how to change the default style instead to get the same result <br>as with your patch.<br><br>Your patch tries to remove all kinds of tags which might lead to wrong<br>routing:<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("vehicle");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("motor_vehicle");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("carpool");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("delivery");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("emergency");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("foot");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("goods");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("hgv");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("motorcar");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("motorcycle");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("psv");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("route");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("taxi");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("bus");<br>+&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cycleWay.deleteTag("truck"); <br><br>Please explain why you remove route=* .<br>I think that one should be kept.<br><br>Gerd</span></p><div><div class="ecxMsoNormal" style="text-align:center;" align="center"><span style="font-family:&quot;Calibri&quot;,sans-serif;"><hr align="center" size="2" width="100%"></span></div><p class="ecxMsoNormal" style=""><span style="font-family:&quot;Calibri&quot;,sans-serif;">From: <a href="mailto:mike@tvage.co.uk">mike@tvage.co.uk</a><br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>Date: Tue, 3 Mar 2015 19:45:00 +0000<br>Subject: Re: [mkgmap-dev] --make-opposite-cycleways option</span></p><div><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">HI <span class="ecxspelle">Gerd</span>, the attached updated patch adds a line to the default style that can be uncommented if you want to see the opposite cycleway names as they are currently.</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">Regards,</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">Mike</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><p class="ecxMsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D;">&nbsp;</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p><div><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm;"><p class="ecxMsoNormal" style=""><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;" lang="EN-US"> <span class="ecxspelle">Gerd</span> <span class="ecxspelle">Petermann</span> [<a href="mailto:gpetermann_muenchen@hotmail.com">mailto:gpetermann_muenchen@hotmail.com</a><span class="ecxgrame">] </span><br><span class="ecxgrame"><b>Sent</b></span><b>:</b> 03 March 2015 08:26<br><b>To:</b> <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br><b>Subject:</b> Re: [mkgmap-<span class="ecxspelle">dev</span>] --make-opposite-cycleways option</span><span style="font-family:&quot;Calibri&quot;,sans-serif;"></span></p></div></div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;">&nbsp;</span></p><div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;">Hi Mike,<br><br>I think you are right&nbsp; regarding the access tags.<br>The current solution in combination with the default style<br>might route a truck through the wrong direction of a oneway.<br>Thanks for pointing this out.<br><br>If I got it right, most style developers don't use this option,<br>they prefer to have the logic in the rules.<br>Maybe this is another argument to remove the option<br>instead of adding code to make it work in special cases?<br><br>Is anybody able to change the default style so that it produces<br>the same result ?<br><br>Gerd</span></p><div><p class="ecxMsoNormal" style=""><span style="font-family:&quot;Calibri&quot;,sans-serif;">From: <a href="mailto:mike@tvage.co.uk">mike@tvage.co.uk</a><br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>Date: Mon, 2 Mar 2015 22:46:07 +0000<br>Subject: [mkgmap-dev] --make-opposite-cycleways option</span></p><pre>Dear all,<br> <br>When using the --make-opposite-cycleways option, I notice that the address<br>index adds a road name of the actual road name suffixed with " (cycleway)".<br>For me at least, this is undesirable. Also the generated name does not<br>conform to the OSM naming convention of not including any descriptive<br>information in names. I therefore propose that the name of an opposite<br>cycleway be set to the same as the original road name, and that users who<br>want to name the opposite cycleway differently should use the style file to<br>rename it.<br> <br>In looking at the code that produces the opposite cycleway, I also believe<br>there is an error in the way it handles access tags - the code currently<br>sets access=no, bicycle=yes and foot=no, but ignores all other access tags.<br>Hence if (for example) the road has psv=yes on it, the generated cycleway<br>will also have psv=yes (unless I am misunderstanding something in the<br>handling of access tags). <br>&nbsp;<br>I therefore submit the attached patch for trial.<br> <br>Regards,<br>Mike</pre><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;"><br>_______________________________________________ mkgmap-dev mailing list <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></span></p></div></div></div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;"><br>_______________________________________________ mkgmap-<span class="ecxspelle">dev</span> mailing list <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></span></p></div></div></div><p class="ecxMsoNormal"><span style="font-family:&quot;Calibri&quot;,sans-serif;"><br>_______________________________________________ mkgmap-<span class="ecxSpellE">dev</span> mailing list <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a> <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></span></p></div></div></div><br>_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</div>                                               </div></body>
</html>