<div dir="ltr">Gerd,<div><br></div><div>Sorry to be so much trouble. Just trying to understand how mkgmap works.</div><div>I have studied the OSM wiki page for EXIT INFO and I assumed that each tag would get it's own mkgmap:(variable)</div><div><br></div><div>If a DESTINATION tag did not exits, I did not realize, it would be assigned to any other existing tags.</div><div><br></div><div>I was trying to form a coherent string based on each tag defined in the motorway_link. What was messing me up was that DESTINATION was begin set to something other that the DESTINATION tag, if it did not exist.</div><div><br></div><div>Your written english is perfect. When I went back to read your posts, I read this:</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">"If a value for </span><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">destination is found, the tag destination is set to it and the way is split."</span><br></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">I just assumed that there would be nothing set for 'destination' if it did NOT exist.</span></div><div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><br></span></div><div>I vote for keeping each OSM tag separate, so mappers can build better exit 'strings'. What I find is that I get DUPLICATES because now I get a 'destination'=Beck Road' and a 'destionation:street'=Beck Rd.</div><div><br></div><div>If someone can show me some code that can remove these duplicates, please let me know. I was just using the standard code structure to build a string only if certain tags existed.</div><div><br></div><div>Thank you for your help. I was not trying to be difficult.</div><div><br></div><div>Greg</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 21, 2016 at 4:01 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, <br>
</p><span class="">
<p><br>
</p>
<p>"why is "Beck Road" being set for variable $[destination] ??"<br>
</p>
</span><p>I've answered this question multiple times now, seems my english is too bad, so</p>
<p>I try again.</p>
<p><br>
</p>
<p>The option --process-destination in mkgmap triggers a function that</p>
<p>is execute when the OSM data is read and before your style rules are executed.</p>
<p>This function checks a list of tags ike destination, destination:forward, destination:lanes</p>
<p>and destination:street . When any of those is found mkgmap adds the tag mkgmap:dest_hint=true</p>
<p>and if the tag destination is not already set it is set with the value that was found in the
<br>
</p>
<p>alternatives. <br>
</p>
<p>I guess this happens because nobody tried to create detailed hints like you do.</p>
<p>If I'd start to code this now I would simplify the code so that it</p>
<p>sets mkgmap:dest_hint to the value that was found. So, instead of checking</p>
<p>mkgmap:dest_hint=true one would use mkgmap:dest_hint=*</p>
<p><br>
</p>
<p>If I change that now all style authors have to change the corresponding rules,</p>
<p>so I'd like to get positive feedback for this idea before I change the code.<br>
</p>
<p><br>
</p>
<p>Gerd<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><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> Montag, 21. März 2016 00:12<span class=""><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</span></font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">Now we are getting somewhere:
<div><br>
</div>
<div>I ran this code:</div>
<div><br>
</div>
<div>
<div># build destination hint </div>
<div>dest_hint=* { delete dest_hint }</div>
<div>highway=* & mkgmap:dest_hint=true { echo 'BEFORE destination=${destination}';</div>
<div><span style="white-space:pre-wrap"></span>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>echo 'AFTER destination=${destination}';</div>
<div><span style="white-space:pre-wrap"></span>}</div>
</div>
<div><br>
</div>
<div>And got this response from mkgmap:</div>
<div><br>
</div>
<div>
<div>Time started: Sun Mar 20 19:09:49 EDT 2016</div>
<div>Found one style in \MKGMAP\openmapchest-style\openmapchest</div>
<div>finished check-styles</div>
<div>4611686018427387907 (8729200): BEFORE destination=Beck Road</div>
<div>4611686018427387907 (8729200): AFTER destination=Beck Road</div>
<div>4611686018427387909 (8729934): BEFORE destination=Beck Road</div>
<div>4611686018427387909 (8729934): AFTER destination=Beck Road</div>
<div>Number of MapFailedExceptions: 0</div>
<div>Number of ExitExceptions: 0</div>
<div>Time finished: Sun Mar 20 19:09:51 EDT 2016</div>
<div>Total time taken: 1497ms</div>
</div>
<div><br>
</div>
<div>If you look at the OSM data, there IS NO DESTINATION tag, so why is "Beck Road" being set for variable $[destination] ??</div>
<div><br>
</div>
<div>Greg</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sat, Mar 19, 2016 at 5:42 PM, Andrzej Popowski <span dir="ltr">
<<a title="Ctrl+Klicken oder tippen Sie, um dem Link zu folgen." href="mailto:popej@poczta.onet.pl" target="_blank">popej@poczta.onet.pl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<span><br>
<br>
> No, echotags expects a string constant as parm, and it prints all<br>
> tags of an object<br>
<br>
</span>It is not that bad, I think it works like string in "set" command. This should work:<br>
... {echotags 'testing destination=${destination}'}<br>
<br>
but it is kind of redundant, maybe better looking would be:<br>
<br>
... {echo 'testing destination=${destination}'}<span><font color="#888888"><br>
<br>
-- <br>
Best regards,<br>
Andrzej</font></span>
<div>
<div><br>
<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>
</div>
</div>
</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>