<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't have any way to experiment with running different strings through those filters I'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 ="Queen Street"</div><div>${name|subst:"Queen=>"} returns " Street"</div><div>${name|subst:"Queen=>King"} returns "King Street"</div><div>${name|subst:".*\s~>"} returns "Street"</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 '${destination:ref|subst: =>} ${destination|subst:;=> |subst:/=> }' <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 "assistant" 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> 'Exit ${mkgmap:exit_hint_ref} ${mkgmap:exit_hint_name}' | highway=road</div><div> 'Exit ${mkgmap:exit_hint_ref} ${mkgmap:exit_hint_exit_to}' | </div><div> 'Exit ${mkgmap:exit_hint_exit_to}' |</div><div> 'Exit ${mkgmap:exit_hint_name}' |</div><div> 'Exit ${mkgmap:exit_hint_ref}'</div></div><div><br></div><div>This seems to be setting a variable named "Exit" to whatever is contained in the mkgmap internal variables. Is that what'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 "assistant" know what words to speak?</div><div><br></div><div>In summary, those are the questions I'm trying to answer. Now that I'm writing style rules of my own I want to better understand how they work. It'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"><<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>></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 "a list of alternative expressions separated with a vertical bar",<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'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's happening in the rule, I would be most appreciative. <div><br></div><div>I'm guessing the first part assigns a name or ref if one appears in the tagging but understanding the logic of the series of "subst" 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"><<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>></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>> I am curious to know how mkgmap handles the display of and text to speech<br>
> aspects of motorway junctions. It's hard to test for this without actually<br>
> creating a route and then driving it to see and hear what the Garmin is<br>
> doing with the data or to discover where it gets the information from.<br>
><br>
> I'm assuming that whatever one puts in the exit_to=* tag gets displayed<br>
> and<br>
> spoken by the Garmin "assistant". Does mkgmap ever use the destination=*<br>
> tag, and if so under what circumstances?<br>
><br>
> I found this rule in the lines style sheet, but I do not understand it<br>
> well<br>
> enough to help me answer my question<br>
><br>
> (highway=motorway_link | highway=trunk_link) & mkgmap:exit_hint=true &<br>
> mkgmap:dest_hint=true<br>
> { name '${destination:ref|subst: =>} ${destination|subst:;=> |subst:/=><br>
> }' |<br>
> '${ref|subst: =>} ${destination|subst:;=> |subst:/=> }' |<br>
> '${destination|subst:;=> |subst:/=> }' |<br>
> 'Exit ${mkgmap:exit_hint_ref} ${mkgmap:exit_hint_name}' |<br>
> highway=road<br>
> 'Exit ${mkgmap:exit_hint_ref} ${mkgmap:exit_hint_exit_to}' |<br>
> 'Exit ${mkgmap:exit_hint_exit_to}' |<br>
> 'Exit ${mkgmap:exit_hint_name}' |<br>
> 'Exit ${mkgmap:exit_hint_ref}'<br>
> }<br>
><br>
><br>
> As always, thanks in advance to any help you can provide.<br>
><br>
> Dave<br>
><br>
> --<br>
> 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><br>
><br>
</div></div>> _______________________________________________<br>
> mkgmap-dev mailing list<br>
<br>
> mkgmap-dev@.org<br>
<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>
<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>