
Now we are getting somewhere: I ran this code: # build destination hint dest_hint=* { delete dest_hint } highway=* & mkgmap:dest_hint=true { echo 'BEFORE destination=${destination}'; 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-}'; set destination = '${destination|subst:/=>,}'; 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}'; echo 'AFTER destination=${destination}'; } And got this response from mkgmap: Time started: Sun Mar 20 19:09:49 EDT 2016 Found one style in \MKGMAP\openmapchest-style\openmapchest finished check-styles 4611686018427387907 (8729200): BEFORE destination=Beck Road 4611686018427387907 (8729200): AFTER destination=Beck Road 4611686018427387909 (8729934): BEFORE destination=Beck Road 4611686018427387909 (8729934): AFTER destination=Beck Road Number of MapFailedExceptions: 0 Number of ExitExceptions: 0 Time finished: Sun Mar 20 19:09:51 EDT 2016 Total time taken: 1497ms If you look at the OSM data, there IS NO DESTINATION tag, so why is "Beck Road" being set for variable $[destination] ?? Greg On Sat, Mar 19, 2016 at 5:42 PM, Andrzej Popowski <popej@poczta.onet.pl> wrote:
Hi,
No, echotags expects a string constant as parm, and it prints all tags of an object
It is not that bad, I think it works like string in "set" command. This should work: ... {echotags 'testing destination=${destination}'}
but it is kind of redundant, maybe better looking would be:
... {echo 'testing destination=${destination}'}
-- Best regards, Andrzej
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev