<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Yes, that's exactly what happens. <br>
</p>
<p>Maybe the help is not clear enough?</p>
<p>"--process-destination<br>
    Splits all motorway_link, trunk_link, primary_link, secondary_link,<br>
    and tertiary_link ways tagged with destination into two or three parts where <br>
    the second part is additionally tagged with mkgmap:dest_hint=true.<br>
    The code checks for the tags destination, destination:lanes, <br>
    destination:street and some variants with :forward/:backward like<br>
    destination:forward or destination:lanes:backward. If a value for<br>
    destination is found, the tag destination is set to it and the way is split.<br>
    This happens before the style rules are processed.<br>
    This allows to use any routable Garmin type (except 0x08 and 0x09)<br>
    for that part so that the Garmin device tells the name of<br>
    this part as hint which destination to follow.      </p>
<p>"</p>
<p><br>
</p>
<p>Gerd<br>
</p>
<p><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com><br>
<b>Gesendet:</b> Samstag, 19. März 2016 20:51<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting</font>
<div> </div>
</div>
<div>
<div dir="ltr">Why do I get a result string:
<div><b style="color:rgb(80,0,80); font-size:12.8px">Exit 18 Beck Rd ~ Beck Road </b><br>
</div>
<div><b style="color:rgb(80,0,80); font-size:12.8px"><br>
</b></div>
<div><font color="#500050"><span style="font-size:12.8px">when the only command line with a ~ is :</span></font></div>
<div><font color="#500050"><span style="font-size:12.8px"><br>
</span></font></div>
<div>
<div style="font-size:12.8px">line 89</div>
<span class="im" style="font-size:12.8px">'${destination:street} ~ ${destination}' |</span></div>
<div><span class="im" style="font-size:12.8px"><br>
</span></div>
<div><span class="im" style="font-size:12.8px">and you can see from the OSM data that (JOSM screen capture pic) that there is NO DESTINATION tag, but only DESTINATION:STREET tag=Beck Road.</span></div>
<div><span class="im" style="font-size:12.8px"><br>
</span></div>
<div><span class="im" style="font-size:12.8px">How is my string being formed?</span></div>
<div><span class="im" style="font-size:12.8px"><br>
</span></div>
<div><span class="im" style="font-size:12.8px">If I could prove that ${destination} contains the string "Beck Road" then there is something that is copying DESTINATION:STREET into and empty DESTINATION tag</span></div>
<div><span class="im" style="font-size:12.8px"><br>
</span></div>
<div><span class="im" style="font-size:12.8px">Greg</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, Mar 19, 2016 at 3:04 PM, 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 dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>What problem do you have with echotags?<br>
</p>
<p>I think it works good enough for questions like yours.</p>
<p><br>
</p>
<p>Gerd<br>
</p>
<p><br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><span class=""><b>Von:</b> mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von
 greg crago <<a href="mailto:gregcrago@gmail.com" target="_blank">gregcrago@gmail.com</a>><br>
</span><b>Gesendet:</b> Samstag, 19. März 2016 18:58
<div>
<div class="h5"><br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting</div>
</div>
</font>
<div> </div>
</div>
<div>
<div class="h5">
<div>
<div dir="ltr">Is there a different command which can print variables?</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, Mar 19, 2016 at 1:51 PM, 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 dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>No, echotags expects a string constant as parm, and it prints all tags of an object</p>
<p><br>
</p>
<p>Gerd<br>
</p>
<p><br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><span><b>Von:</b> mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von greg crago
 <<a href="mailto:gregcrago@gmail.com" target="_blank">gregcrago@gmail.com</a>><br>
</span><b>Gesendet:</b> Samstag, 19. März 2016 18:48<span><br>
<b>An:</b> Development list for mkgmap<br>
</span><b>Betreff:</b> Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting</font>
<div> </div>
</div>
<div>
<div>
<div>
<div dir="ltr">Since the result string was:
<div><span style="font-size:12.8px"><b>Exit 18 Beck Rd ~ Beck Road </b></span><br>
<div><br>
</div>
<div><br>
</div>
<div>The only place in the code with a "~" is </div>
<div><br>
</div>
<div>line 89</div>
<div>'${destination:street} ~ ${destination}' |<br>
</div>
</div>
<div><br>
</div>
<div>Can I use echotags to display the actual value of a variable </div>
<div><br>
</div>
<div>{echotags ${destination}) ?</div>
<div><br>
</div>
<div>Greg</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, Mar 19, 2016 at 10:37 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 dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Greg.</p>
<p><br>
</p>
<p>when mkgmap:dest_hint=true matches than mkgmap has either found a destination tag in the OSM
<br>
</p>
<p>data or it has filled destination with one of the alternative values like <br>
</p>
<p>destination:forward, destination:street, destination:lanes and so on.</p>
<p>Maybe that is not a good idea, maybe mkgmap should fill a prefixed varible instead.</p>
<p>Does that help?<br>
</p>
<p><br>
</p>
<p>Gerd<br>
</p>
<p><br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Von:</b> mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von greg crago <<a href="mailto:gregcrago@gmail.com" target="_blank">gregcrago@gmail.com</a>><br>
<b>Gesendet:</b> Samstag, 19. März 2016 01:34<br>
<b>An:</b> Development list for mkgmap<br>
<b>Betreff:</b> [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting</font>
<div> </div>
</div>
<div>
<div>
<div>
<div dir="ltr">I have an exit with a highway=motorway_link and destination:street=Beck Road. I have a node with highway=junction and ref=18.
<div><br>
</div>
<div>I was trying to get:</div>
<div>Exit 18 Beck Rd</div>
<div><br>
</div>
<div>But I am getting:</div>
<div>Exit 18 Beck Rd ~ Beck Road <br>
</div>
<div>
<div><br>
</div>
<div>My <b>line</b> file contains:</div>
<div><br>
</div>
<div>
<div>dest_hint=* { delete dest_hint }</div>
<div>highway=* & mkgmap:dest_hint=true { set destination:ref = '${destination:ref|subst:South=> S|subst:North=> N|subst:East=> E|subst:West=> W|subst:I =>I-|subst:M =>M-|subst:US =>US-}'; </div>
<div><span style="white-space:pre-wrap"></span>set destination = '${destination|subst:/=>,}';</div>
<div><span style="white-space:pre-wrap"></span>set destination:street = '${destination:street|subst:;=>,|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy|subst: Southwest=>
 SW|subst: Northwest=> NW|subst: Southeast=> SE|subst: Northeast=> NE}';</div>
<div><span style="white-space:pre-wrap"></span>}</div>
<div><br>
</div>
<div>(highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:dest_hint=true</div>
<div>  { set dest_hint = '${destination:ref} ${destination:street} - ${destination}' |</div>
<div><span style="white-space:pre-wrap"></span>'${destination:ref} ${destination:street}' |</div>
<div><span style="white-space:pre-wrap"></span><b>'${destination:street} ~ ${destination}' </b>|</div>
<div><span style="white-space:pre-wrap"></span>'${destination:ref} ^ ${destination}' | </div>
<div><span style="white-space:pre-wrap"></span>'${destination:street}' |</div>
<div><span style="white-space:pre-wrap"></span>'${exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W} ${exit_hint_name|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=>
 Pkwy|subst: Highway=> Hwy}' |</div>
<div><span style="white-space:pre-wrap"></span>'${exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' |</div>
<div><span style="white-space:pre-wrap"></span>'${destination}';</div>
<div>       }</div>
<div># build exit hint </div>
<div>exit_hint=* { delete exit_hint }</div>
<div>(highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:exit_hint=true </div>
<div>  { set exit_hint = 'Exit ${mkgmap:exit_hint_ref}';</div>
<div>#<span style="white-space:pre-wrap"> </span>'Exit ${mkgmap:exit_hint_name|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | </div>
<div>#<span style="white-space:pre-wrap"> </span>'Exit ${ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}' |</div>
<div>#<span style="white-space:pre-wrap"> </span>'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W} ${mkgmap:exit_hint_exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=>
 Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | </div>
<div>#<span style="white-space:pre-wrap"> </span>'Exit ${mkgmap:exit_hint_exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' |</div>
<div>#<span style="white-space:pre-wrap"> </span>'Exit ${mkgmap:exit_hint_name|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' |</div>
<div>#<span style="white-space:pre-wrap"> </span>'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}';</div>
<div>       }</div>
<div># use destination hint and/or exit hint to build name              </div>
<div>(highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & (mkgmap:exit_hint=true | mkgmap:dest_hint=true)</div>
<div>  {<span style="white-space:pre-wrap"> </span>name '${exit_hint} ${dest_hint}' | '${dest_hint}' | '${exit_hint}'}</div>
<div><br>
</div>
<div>I used different symbols to tell me which code is being executed. Since the result string contains a "~" I think it is executing <b>'${destination:street} ~ ${destination}' </b>which is strange, since there is no DESTINATION tag at all.</div>
<div><br>
</div>
<div>Can someone see why I am getting "Exit 18 Beck Rd ~ Beck Road" when I should be getting "Exit 18 Beck Rd"?</div>
</div>
</div>
<div><br>
</div>
<div>Attached are screenshots and actual osm.pbf data for just this intersection.</div>
<div><br>
</div>
<div>Greg</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</blockquote>
</div>
<br>
</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" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>