<div dir="ltr">no 3675  file yet <div>Steve </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 1, 2016 at 4:41 PM, svn commit <span dir="ltr"><<a href="mailto:svn@mkgmap.org.uk" target="_blank">svn@mkgmap.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Version mkgmap-r3675 was committed by gerd on Fri, 01 Apr 2016<br>
<br>
dest_hint_v1.patch : change --process-destination option<br>
The process_destination option was a bit problematic because<br>
it could have added the tag destination=* to an existing OSM element.<br>
<br>
The attached patch changes the method like this:<br>
1) the tag destination is not changed by mkgmap<br>
2) Instead the special tag mkgmap:dest_hint is now set to the<br>
destination string that was found in one of the tags listed in this code snippet:<br>
        tags.add("destination");<br>
        tags.add("destination:lanes");<br>
        tags.add("destination:lanes:forward");<br>
        tags.add("destination:lanes:backward");<br>
        tags.add("destination:forward");<br>
        tags.add("destination:backward");<br>
        tags.add("destination:street");<br>
<br>
<br>
(BTW: This is also the order of evaluation in mkgmap searches since r3673, of cause<br>
forward/backward are checked depending on the direction of the way)<br>
<br>
For style authors this means that they have to<br>
1) change all rules with mkgmap:dest_hint=true to mkgmap:dest_hint=*<br>
2) change the rule that produces the hint to something like this:<br>
mkgmap:dest_hint=*<br>
  { set dest_hint = '${destination:ref|subst: =>} ${mkgmap:dest_hint|subst:;=> |subst:/=> }' |<br>
         '${ref|subst: =>} ${mkgmap:dest_hint|subst:;=> |subst:/=> }' |<br>
         '${mkgmap:dest_hint|subst:;=> |subst:/=> }';<br>
       }<br>
<br>
Basically all places where "destination" was used were changed to mkgmap:dest_hint.<br>
This could cause trouble, so I've added a check that complains when<br>
the style contains an expression mkgmap:dest_hint=true.<br>
<br>
<a href="http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=3675" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=3675</a><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>