<div dir="ltr">@Gerd,<div><br></div><div>There is no problem and your brief explanation helped. Everything is working fine but I wanted to understand the logic of the rule better. But because I don&#39;t have any way to experiment with running different strings through those filters I&#39;m having trouble visualizing what they are doing. In the style manual some examples of the subst filter in action are shown for illustrative purposes:</div><div><br></div><div><div>Example, if name =&quot;Queen Street&quot;</div><div>${name|subst:&quot;Queen=&gt;&quot;} returns &quot; Street&quot;</div><div>${name|subst:&quot;Queen=&gt;King&quot;} returns &quot;King Street&quot;</div><div>${name|subst:&quot;.*\s~&gt;&quot;} returns &quot;Street&quot;</div></div><div><br></div><div>I was wanting some similar explanation for how that long rule works. Something like this:</div><div><br></div><div>If the following tag exists on a way, destination:ref=US 20;Rochester</div><div>the results will be</div><div>????</div><div><br></div><div>I was not seeing what this part of that single long rule was doing until you mentioned cleaning up blanks and semicolons:<br></div><div><br></div><div>name &#39;${destination:ref|subst: =&gt;} ${destination|subst:;=&gt; |subst:/=&gt; }&#39; <br></div><div><br></div><div>To me it appeared to be setting the name of the way to blank or null if it encounters the tag destination:ref but now I understand it is eliminating blanks and other punctuation because I noticed the blank character following the colon in the subst command. So that means the second part removes semicolons. But why is it doing that? And what part gets passed to the Garmin &quot;assistant&quot; who then voices the information as the exit on a route is approached?</div><div><br></div><div>Continuing: After all the punctuation has been stripped from the destination tag we move to the next part of the rule. </div><div><span style="font-size:16px"><br></span></div><div><div><span style="font-size:16px">        </span>  &#39;Exit ${mkgmap:exit_hint_ref} ${mkgmap:exit_hint_name}&#39; | highway=road</div><div>         &#39;Exit ${mkgmap:exit_hint_ref} ${mkgmap:exit_hint_exit_to}&#39; | </div><div>         &#39;Exit ${mkgmap:exit_hint_exit_to}&#39; |</div><div>         &#39;Exit ${mkgmap:exit_hint_name}&#39; |</div><div>         &#39;Exit ${mkgmap:exit_hint_ref}&#39;</div></div><div><br></div><div>This seems to be setting a variable named &quot;Exit&quot; to whatever is contained in the mkgmap internal variables. Is that what&#39;s happening? Where are those variables defined and set? Where does the data come from?</div><div><br></div><div>Another big question is about the exit_to tag. Take this example of a motorway junction node. No destination tag appears on the linking way itself but my Garmin will speak the words properly as you approach Exit 10:</div><div><br></div><div>highway=motorway_junction</div><div>ref:Exit 10</div><div>exit_to:Greenville;South NC 40; US 421</div><div><br></div><div>I cannot find a rule that tells me how an exit_to tag is handled. Where does that information get processed? And how does the &quot;assistant&quot; know what words to speak?</div><div><br></div><div>In summary, those are the questions I&#39;m trying to answer. Now that I&#39;m writing style rules of my own I want to better understand how they work. It&#39;s a slow process, especially when the examples in the manual are so simple. Perhaps a more complex, real world, example would help future mappers.</div><div><br></div><div>Dave</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 16, 2015 at 3:04 AM, Gerd Petermann <span dir="ltr">&lt;<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="hm HOEnZb">


</div><div><div dir="ltr"><div class="hm HOEnZb"><br><br></div><div><div class="hm HOEnZb"><hr>From: <a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a><br>To: <a href="mailto:daveswarthout@gmail.com" target="_blank">daveswarthout@gmail.com</a><br>Subject: RE: [mkgmap-dev] Routing parameters<br>Date: Sat, 16 May 2015 12:02:22 +0200</div><div><div class="h5"><br><br>


<div dir="ltr">Hi Dave,<br><br>not sure what the problem is.<br>The subst filters are just used to remove some blanks or semicolons.<br>The rest is more or less &quot;a list of alternative expressions separated with a vertical bar&quot;,<br>you can search for that term in the style manual:<br><a href="http://www.mkgmap.org.uk/doc/pdf/style-manual.pdf" target="_blank">http://www.mkgmap.org.uk/doc/pdf/style-manual.pdf</a><br><br>I&#39;ve never tried these options because I use my GPS only for cycling,<br>but my understanding is that the types 0x08 and 0x09 are special<br>as they instruct the Garmin device to use the name of the road for the <br>destination hint, and these rules are used to fill this name with useful<br>information.<br><br>Does that help?<br><br>Gerd<br><br><div><hr>From: <a href="mailto:daveswarthout@gmail.com" target="_blank">daveswarthout@gmail.com</a><br>Date: Fri, 15 May 2015 17:51:13 -0700<br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>Subject: Re: [mkgmap-dev] Routing parameters<br><br><div dir="ltr">Yes, as you can see above, I  understand the intent of those two options. But if someone could further explain what&#39;s happening in the rule, I would be most appreciative. <div><br></div><div>I&#39;m guessing the first part assigns a name or ref if one appears in the tagging but understanding the logic of the series of &quot;subst&quot; filters following that is, for a newbie, quite challenging.</div></div><div><br><div>On Fri, May 15, 2015 at 12:17 PM, GerdP <span dir="ltr">&lt;<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>&gt;</span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">Hi Dave,<br>
<br>
please check the documentation for --process-destination and<br>
--process-exits:<br>
<a href="http://www.mkgmap.org.uk/doc/options" target="_blank">http://www.mkgmap.org.uk/doc/options</a><br>
<br>
If I got this right, these option mark exits so that Garmin knows where<br>
they are where they lead.<br>
<br>
Gerd<br>
<br>
<br>
Dave Swarthout wrote<br>
<div><div>&gt; I am curious to know how mkgmap handles the display of and text to speech<br>
&gt; aspects of motorway junctions. It&#39;s hard to test for this without actually<br>
&gt; creating a route and then driving it to see and hear what the Garmin is<br>
&gt; doing with the data or to discover where it gets the information from.<br>
&gt;<br>
&gt; I&#39;m assuming that whatever one puts in the exit_to=* tag gets displayed<br>
&gt; and<br>
&gt; spoken by the Garmin &quot;assistant&quot;. Does mkgmap ever use the destination=*<br>
&gt; tag, and if so under what circumstances?<br>
&gt;<br>
&gt; I found this rule in the lines style sheet, but I do not understand it<br>
&gt; well<br>
&gt; enough to help me answer my question<br>
&gt;<br>
&gt; (highway=motorway_link | highway=trunk_link) &amp; mkgmap:exit_hint=true &amp;<br>
&gt; mkgmap:dest_hint=true<br>
&gt;   { name &#39;${destination:ref|subst: =&gt;} ${destination|subst:;=&gt; |subst:/=&gt;<br>
&gt; }&#39; |<br>
&gt;          &#39;${ref|subst: =&gt;} ${destination|subst:;=&gt; |subst:/=&gt; }&#39; |<br>
&gt;          &#39;${destination|subst:;=&gt; |subst:/=&gt; }&#39; |<br>
&gt;          &#39;Exit ${mkgmap:exit_hint_ref} ${mkgmap:exit_hint_name}&#39; |<br>
&gt; highway=road<br>
&gt;          &#39;Exit ${mkgmap:exit_hint_ref} ${mkgmap:exit_hint_exit_to}&#39; |<br>
&gt;          &#39;Exit ${mkgmap:exit_hint_exit_to}&#39; |<br>
&gt;          &#39;Exit ${mkgmap:exit_hint_name}&#39; |<br>
&gt;          &#39;Exit ${mkgmap:exit_hint_ref}&#39;<br>
&gt;        }<br>
&gt;<br>
&gt;<br>
&gt; As always, thanks in advance to any help you can provide.<br>
&gt;<br>
&gt; Dave<br>
&gt;<br>
&gt; --<br>
&gt; Dave Swarthout<br>
&gt; Homer, Alaska<br>
&gt; Chiang Mai, Thailand<br>
&gt; Travel Blog at <a href="http://dswarthout.blogspot.com" target="_blank">http://dswarthout.blogspot.com</a><br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; mkgmap-dev mailing list<br>
<br>
&gt; mkgmap-dev@.org<br>
<br>
&gt; <a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gis.19327.n5.nabble.com/Routing-parameters-tp5844762p5844766.html" target="_blank">http://gis.19327.n5.nabble.com/Routing-parameters-tp5844762p5844766.html</a><br>
Sent from the Mkgmap Development mailing list archive at Nabble.com.<br>
<div><div>_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Dave Swarthout<br>Homer, Alaska<br>Chiang Mai, Thailand<br>Travel Blog at <a href="http://dswarthout.blogspot.com" target="_blank">http://dswarthout.blogspot.com</a></div></div>
</div>
<br>_______________________________________________
mkgmap-dev mailing list
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">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></div>                                               </div></div></div></div>                                               </div></div>
<br>_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Dave Swarthout<br>Homer, Alaska<br>Chiang Mai, Thailand<br>Travel Blog at <a href="http://dswarthout.blogspot.com" target="_blank">http://dswarthout.blogspot.com</a></div></div>
</div>