logo separator

[mkgmap-dev] [Patch v1] improve handling of exits

From Dave Swarthout daveswarthout at gmail.com on Tue May 19 15:08:26 BST 2015

On Mon, May 18, 2015 at 7:51 AM, Gerd Petermann <
gpetermann_muenchen at hotmail.com> wrote:


> @Dave: Please note the changes in the default style.
> It would be great if you could test this patch and maybe suggest
> a better description of the two options.
>

Sorry for the delay in responding. The modified r3598 produced output from
the echotags function. I did not see anything regarding the exit_to tags
but my test destination tag was processed and this output went to stderr:

4611686018427392234 (168231839) -
[highway=motorway_link,destination=Beltline Road
East,mkgmap:exit_hint=true,mkgmap:dest_hint=true,bicycle=yes,mkgmap:way-has-pois=true,mkgmap:exit_hint_ref=195A,mkgmap:label:1=Dest:
Beltline Road East,oneway=yes] before
4611686018427392234 (168231839) -
[highway=motorway_link,destination=Beltline Road
East,mkgmap:exit_hint=true,mkgmap:dest_hint=true,bicycle=yes,mkgmap:way-has-pois=true,mkgmap:exit_hint_ref=195A,mkgmap:label:1=Dest:
Beltline Road East,oneway=yes] after

*(highway=motorway_link | highway=trunk_link) & mkgmap:exit_hint=true &*
*mkgmap:dest_hint=true*
*  { echotags "before";*
*name '${destination:ref|subst: =>} ${destination|subst:;=> |subst:/=> }' |*
*         '${ref|subst: =>} ${destination|subst:;=> |subst:/=> }' |*
*         '${destination|subst:;=> |subst:/=> }' |*
*         'Exit ${mkgmap:exit_hint_ref} ${mkgmap:exit_hint_name}' |*
*         'Exit ${mkgmap:exit_hint_ref} ${mkgmap:exit_hint_exit_to}' |*
*         'Exit ${mkgmap:exit_hint_exit_to}' |*
*         'Exit ${mkgmap:exit_hint_name}' |*
*         'Exit ${mkgmap:exit_hint_ref}' ;*
*echotags "after"*
*       }*

This is my rule for debugging the destination tag and it appears before the
rule above:

*destination=* & (highway=motorway_link | highway=trunk_link) {name 'Dest:
${destination}' }*

My exit_to rule is for points is here:

*exit_to=* {name 'Exit ${ref} ${exit_to}' | '${exit_to}' }  [0x12615
resolution 24]*

This produces the desired output on my maps but doesn't show up in stderr
because I haven't yet put echotags into my points style file.

Thanks for the good work....





-- 
Dave Swarthout
Homer, Alaska
Chiang Mai, Thailand
Travel Blog at http://dswarthout.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150519/44e29d28/attachment.html>


More information about the mkgmap-dev mailing list