Exit_hint and Dest_hint result is not what I was expecting

I have an exit with a highway=motorway_link and destination:street=Beck Road. I have a node with highway=junction and ref=18. I was trying to get: Exit 18 Beck Rd But I am getting: Exit 18 Beck Rd ~ Beck Road My *line* file contains: dest_hint=* { delete dest_hint } 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-}'; 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}'; } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:dest_hint=true { set dest_hint = '${destination:ref} ${destination:street} - ${destination}' | '${destination:ref} ${destination:street}' | *'${destination:street} ~ ${destination}' *| '${destination:ref} ^ ${destination}' | '${destination:street}' | '${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}' | '${exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | '${destination}'; } # build exit hint exit_hint=* { delete exit_hint } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:exit_hint=true { set exit_hint = 'Exit ${mkgmap:exit_hint_ref}'; # '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}' | # 'Exit ${ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}' | # '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}' | # '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}' | # '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}' | # 'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}'; } # use destination hint and/or exit hint to build name (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & (mkgmap:exit_hint=true | mkgmap:dest_hint=true) { name '${exit_hint} ${dest_hint}' | '${dest_hint}' | '${exit_hint}'} I used different symbols to tell me which code is being executed. Since the result string contains a "~" I think it is executing *'${destination:street} ~ ${destination}' *which is strange, since there is no DESTINATION tag at all. Can someone see why I am getting "Exit 18 Beck Rd ~ Beck Road" when I should be getting "Exit 18 Beck Rd"? Attached are screenshots and actual osm.pbf data for just this intersection. Greg

Hi Greg. when mkgmap:dest_hint=true matches than mkgmap has either found a destination tag in the OSM data or it has filled destination with one of the alternative values like destination:forward, destination:street, destination:lanes and so on. Maybe that is not a good idea, maybe mkgmap should fill a prefixed varible instead. Does that help? Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> Gesendet: Samstag, 19. März 2016 01:34 An: Development list for mkgmap Betreff: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting I have an exit with a highway=motorway_link and destination:street=Beck Road. I have a node with highway=junction and ref=18. I was trying to get: Exit 18 Beck Rd But I am getting: Exit 18 Beck Rd ~ Beck Road My line file contains: dest_hint=* { delete dest_hint } 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-}'; 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}'; } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:dest_hint=true { set dest_hint = '${destination:ref} ${destination:street} - ${destination}' | '${destination:ref} ${destination:street}' | '${destination:street} ~ ${destination}' | '${destination:ref} ^ ${destination}' | '${destination:street}' | '${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}' | '${exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | '${destination}'; } # build exit hint exit_hint=* { delete exit_hint } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:exit_hint=true { set exit_hint = 'Exit ${mkgmap:exit_hint_ref}'; # '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}' | # 'Exit ${ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}' | # '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}' | # '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}' | # '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}' | # 'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}'; } # use destination hint and/or exit hint to build name (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & (mkgmap:exit_hint=true | mkgmap:dest_hint=true) { name '${exit_hint} ${dest_hint}' | '${dest_hint}' | '${exit_hint}'} I used different symbols to tell me which code is being executed. Since the result string contains a "~" I think it is executing '${destination:street} ~ ${destination}' which is strange, since there is no DESTINATION tag at all. Can someone see why I am getting "Exit 18 Beck Rd ~ Beck Road" when I should be getting "Exit 18 Beck Rd"? Attached are screenshots and actual osm.pbf data for just this intersection. Greg

Since the result string was: *Exit 18 Beck Rd ~ Beck Road * The only place in the code with a "~" is line 89 '${destination:street} ~ ${destination}' | Can I use echotags to display the actual value of a variable {echotags ${destination}) ? Greg On Sat, Mar 19, 2016 at 10:37 AM, Gerd Petermann < GPetermann_muenchen@hotmail.com> wrote:
Hi Greg.
when mkgmap:dest_hint=true matches than mkgmap has either found a destination tag in the OSM
data or it has filled destination with one of the alternative values like
destination:forward, destination:street, destination:lanes and so on.
Maybe that is not a good idea, maybe mkgmap should fill a prefixed varible instead.
Does that help?
Gerd
------------------------------ *Von:* mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> *Gesendet:* Samstag, 19. März 2016 01:34 *An:* Development list for mkgmap *Betreff:* [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting
I have an exit with a highway=motorway_link and destination:street=Beck Road. I have a node with highway=junction and ref=18.
I was trying to get: Exit 18 Beck Rd
But I am getting: Exit 18 Beck Rd ~ Beck Road
My *line* file contains:
dest_hint=* { delete dest_hint } 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-}'; 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}'; }
(highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:dest_hint=true { set dest_hint = '${destination:ref} ${destination:street} - ${destination}' | '${destination:ref} ${destination:street}' | *'${destination:street} ~ ${destination}' *| '${destination:ref} ^ ${destination}' | '${destination:street}' | '${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}' | '${exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | '${destination}'; } # build exit hint exit_hint=* { delete exit_hint } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:exit_hint=true { set exit_hint = 'Exit ${mkgmap:exit_hint_ref}'; # '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}' | # 'Exit ${ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}' | # '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}' | # '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}' | # '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}' | # 'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}'; } # use destination hint and/or exit hint to build name (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & (mkgmap:exit_hint=true | mkgmap:dest_hint=true) { name '${exit_hint} ${dest_hint}' | '${dest_hint}' | '${exit_hint}'}
I used different symbols to tell me which code is being executed. Since the result string contains a "~" I think it is executing *'${destination:street} ~ ${destination}' *which is strange, since there is no DESTINATION tag at all.
Can someone see why I am getting "Exit 18 Beck Rd ~ Beck Road" when I should be getting "Exit 18 Beck Rd"?
Attached are screenshots and actual osm.pbf data for just this intersection.
Greg
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

No, echotags expects a string constant as parm, and it prints all tags of an object Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> Gesendet: Samstag, 19. März 2016 18:48 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting Since the result string was: Exit 18 Beck Rd ~ Beck Road The only place in the code with a "~" is line 89 '${destination:street} ~ ${destination}' | Can I use echotags to display the actual value of a variable {echotags ${destination}) ? Greg On Sat, Mar 19, 2016 at 10:37 AM, Gerd Petermann <GPetermann_muenchen@hotmail.com<mailto:GPetermann_muenchen@hotmail.com>> wrote: Hi Greg. when mkgmap:dest_hint=true matches than mkgmap has either found a destination tag in the OSM data or it has filled destination with one of the alternative values like destination:forward, destination:street, destination:lanes and so on. Maybe that is not a good idea, maybe mkgmap should fill a prefixed varible instead. Does that help? Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von greg crago <gregcrago@gmail.com<mailto:gregcrago@gmail.com>> Gesendet: Samstag, 19. März 2016 01:34 An: Development list for mkgmap Betreff: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting I have an exit with a highway=motorway_link and destination:street=Beck Road. I have a node with highway=junction and ref=18. I was trying to get: Exit 18 Beck Rd But I am getting: Exit 18 Beck Rd ~ Beck Road My line file contains: dest_hint=* { delete dest_hint } 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-}'; 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}'; } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:dest_hint=true { set dest_hint = '${destination:ref} ${destination:street} - ${destination}' | '${destination:ref} ${destination:street}' | '${destination:street} ~ ${destination}' | '${destination:ref} ^ ${destination}' | '${destination:street}' | '${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}' | '${exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | '${destination}'; } # build exit hint exit_hint=* { delete exit_hint } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:exit_hint=true { set exit_hint = 'Exit ${mkgmap:exit_hint_ref}'; # '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}' | # 'Exit ${ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}' | # '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}' | # '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}' | # '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}' | # 'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}'; } # use destination hint and/or exit hint to build name (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & (mkgmap:exit_hint=true | mkgmap:dest_hint=true) { name '${exit_hint} ${dest_hint}' | '${dest_hint}' | '${exit_hint}'} I used different symbols to tell me which code is being executed. Since the result string contains a "~" I think it is executing '${destination:street} ~ ${destination}' which is strange, since there is no DESTINATION tag at all. Can someone see why I am getting "Exit 18 Beck Rd ~ Beck Road" when I should be getting "Exit 18 Beck Rd"? Attached are screenshots and actual osm.pbf data for just this intersection. Greg _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Is there a different command which can print variables? On Sat, Mar 19, 2016 at 1:51 PM, Gerd Petermann < GPetermann_muenchen@hotmail.com> wrote:
No, echotags expects a string constant as parm, and it prints all tags of an object
Gerd
------------------------------ *Von:* mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> *Gesendet:* Samstag, 19. März 2016 18:48 *An:* Development list for mkgmap *Betreff:* Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting
Since the result string was: *Exit 18 Beck Rd ~ Beck Road *
The only place in the code with a "~" is
line 89 '${destination:street} ~ ${destination}' |
Can I use echotags to display the actual value of a variable
{echotags ${destination}) ?
Greg
On Sat, Mar 19, 2016 at 10:37 AM, Gerd Petermann < GPetermann_muenchen@hotmail.com> wrote:
Hi Greg.
when mkgmap:dest_hint=true matches than mkgmap has either found a destination tag in the OSM
data or it has filled destination with one of the alternative values like
destination:forward, destination:street, destination:lanes and so on.
Maybe that is not a good idea, maybe mkgmap should fill a prefixed varible instead.
Does that help?
Gerd
------------------------------ *Von:* mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> *Gesendet:* Samstag, 19. März 2016 01:34 *An:* Development list for mkgmap *Betreff:* [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting
I have an exit with a highway=motorway_link and destination:street=Beck Road. I have a node with highway=junction and ref=18.
I was trying to get: Exit 18 Beck Rd
But I am getting: Exit 18 Beck Rd ~ Beck Road
My *line* file contains:
dest_hint=* { delete dest_hint } 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-}'; 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}'; }
(highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:dest_hint=true { set dest_hint = '${destination:ref} ${destination:street} - ${destination}' | '${destination:ref} ${destination:street}' | *'${destination:street} ~ ${destination}' *| '${destination:ref} ^ ${destination}' | '${destination:street}' | '${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}' | '${exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | '${destination}'; } # build exit hint exit_hint=* { delete exit_hint } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:exit_hint=true { set exit_hint = 'Exit ${mkgmap:exit_hint_ref}'; # '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}' | # 'Exit ${ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}' | # '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}' | # '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}' | # '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}' | # 'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}'; } # use destination hint and/or exit hint to build name (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & (mkgmap:exit_hint=true | mkgmap:dest_hint=true) { name '${exit_hint} ${dest_hint}' | '${dest_hint}' | '${exit_hint}'}
I used different symbols to tell me which code is being executed. Since the result string contains a "~" I think it is executing *'${destination:street} ~ ${destination}' *which is strange, since there is no DESTINATION tag at all.
Can someone see why I am getting "Exit 18 Beck Rd ~ Beck Road" when I should be getting "Exit 18 Beck Rd"?
Attached are screenshots and actual osm.pbf data for just this intersection.
Greg
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

What problem do you have with echotags? I think it works good enough for questions like yours. Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> Gesendet: Samstag, 19. März 2016 18:58 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting Is there a different command which can print variables? On Sat, Mar 19, 2016 at 1:51 PM, Gerd Petermann <GPetermann_muenchen@hotmail.com<mailto:GPetermann_muenchen@hotmail.com>> wrote: No, echotags expects a string constant as parm, and it prints all tags of an object Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von greg crago <gregcrago@gmail.com<mailto:gregcrago@gmail.com>> Gesendet: Samstag, 19. März 2016 18:48 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting Since the result string was: Exit 18 Beck Rd ~ Beck Road The only place in the code with a "~" is line 89 '${destination:street} ~ ${destination}' | Can I use echotags to display the actual value of a variable {echotags ${destination}) ? Greg On Sat, Mar 19, 2016 at 10:37 AM, Gerd Petermann <GPetermann_muenchen@hotmail.com<mailto:GPetermann_muenchen@hotmail.com>> wrote: Hi Greg. when mkgmap:dest_hint=true matches than mkgmap has either found a destination tag in the OSM data or it has filled destination with one of the alternative values like destination:forward, destination:street, destination:lanes and so on. Maybe that is not a good idea, maybe mkgmap should fill a prefixed varible instead. Does that help? Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von greg crago <gregcrago@gmail.com<mailto:gregcrago@gmail.com>> Gesendet: Samstag, 19. März 2016 01:34 An: Development list for mkgmap Betreff: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting I have an exit with a highway=motorway_link and destination:street=Beck Road. I have a node with highway=junction and ref=18. I was trying to get: Exit 18 Beck Rd But I am getting: Exit 18 Beck Rd ~ Beck Road My line file contains: dest_hint=* { delete dest_hint } 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-}'; 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}'; } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:dest_hint=true { set dest_hint = '${destination:ref} ${destination:street} - ${destination}' | '${destination:ref} ${destination:street}' | '${destination:street} ~ ${destination}' | '${destination:ref} ^ ${destination}' | '${destination:street}' | '${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}' | '${exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | '${destination}'; } # build exit hint exit_hint=* { delete exit_hint } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:exit_hint=true { set exit_hint = 'Exit ${mkgmap:exit_hint_ref}'; # '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}' | # 'Exit ${ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}' | # '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}' | # '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}' | # '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}' | # 'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}'; } # use destination hint and/or exit hint to build name (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & (mkgmap:exit_hint=true | mkgmap:dest_hint=true) { name '${exit_hint} ${dest_hint}' | '${dest_hint}' | '${exit_hint}'} I used different symbols to tell me which code is being executed. Since the result string contains a "~" I think it is executing '${destination:street} ~ ${destination}' which is strange, since there is no DESTINATION tag at all. Can someone see why I am getting "Exit 18 Beck Rd ~ Beck Road" when I should be getting "Exit 18 Beck Rd"? Attached are screenshots and actual osm.pbf data for just this intersection. Greg _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Why do I get a result string: *Exit 18 Beck Rd ~ Beck Road * when the only command line with a ~ is : line 89 '${destination:street} ~ ${destination}' | 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. How is my string being formed? 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 Greg On Sat, Mar 19, 2016 at 3:04 PM, Gerd Petermann < GPetermann_muenchen@hotmail.com> wrote:
What problem do you have with echotags?
I think it works good enough for questions like yours.
Gerd
------------------------------ *Von:* mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> *Gesendet:* Samstag, 19. März 2016 18:58
*An:* Development list for mkgmap *Betreff:* Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting
Is there a different command which can print variables?
On Sat, Mar 19, 2016 at 1:51 PM, Gerd Petermann < GPetermann_muenchen@hotmail.com> wrote:
No, echotags expects a string constant as parm, and it prints all tags of an object
Gerd
------------------------------ *Von:* mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> *Gesendet:* Samstag, 19. März 2016 18:48 *An:* Development list for mkgmap *Betreff:* Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting
Since the result string was: *Exit 18 Beck Rd ~ Beck Road *
The only place in the code with a "~" is
line 89 '${destination:street} ~ ${destination}' |
Can I use echotags to display the actual value of a variable
{echotags ${destination}) ?
Greg
On Sat, Mar 19, 2016 at 10:37 AM, Gerd Petermann < GPetermann_muenchen@hotmail.com> wrote:
Hi Greg.
when mkgmap:dest_hint=true matches than mkgmap has either found a destination tag in the OSM
data or it has filled destination with one of the alternative values like
destination:forward, destination:street, destination:lanes and so on.
Maybe that is not a good idea, maybe mkgmap should fill a prefixed varible instead.
Does that help?
Gerd
------------------------------ *Von:* mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> *Gesendet:* Samstag, 19. März 2016 01:34 *An:* Development list for mkgmap *Betreff:* [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting
I have an exit with a highway=motorway_link and destination:street=Beck Road. I have a node with highway=junction and ref=18.
I was trying to get: Exit 18 Beck Rd
But I am getting: Exit 18 Beck Rd ~ Beck Road
My *line* file contains:
dest_hint=* { delete dest_hint } 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-}'; 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}'; }
(highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:dest_hint=true { set dest_hint = '${destination:ref} ${destination:street} - ${destination}' | '${destination:ref} ${destination:street}' | *'${destination:street} ~ ${destination}' *| '${destination:ref} ^ ${destination}' | '${destination:street}' | '${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}' | '${exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | '${destination}'; } # build exit hint exit_hint=* { delete exit_hint } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:exit_hint=true { set exit_hint = 'Exit ${mkgmap:exit_hint_ref}'; # '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}' | # 'Exit ${ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}' | # '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}' | # '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}' | # '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}' | # 'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}'; } # use destination hint and/or exit hint to build name (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & (mkgmap:exit_hint=true | mkgmap:dest_hint=true) { name '${exit_hint} ${dest_hint}' | '${dest_hint}' | '${exit_hint}'}
I used different symbols to tell me which code is being executed. Since the result string contains a "~" I think it is executing *'${destination:street} ~ ${destination}' *which is strange, since there is no DESTINATION tag at all.
Can someone see why I am getting "Exit 18 Beck Rd ~ Beck Road" when I should be getting "Exit 18 Beck Rd"?
Attached are screenshots and actual osm.pbf data for just this intersection.
Greg
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Yes, that's exactly what happens. Maybe the help is not clear enough? "--process-destination Splits all motorway_link, trunk_link, primary_link, secondary_link, and tertiary_link ways tagged with destination into two or three parts where the second part is additionally tagged with mkgmap:dest_hint=true. The code checks for the tags destination, destination:lanes, destination:street and some variants with :forward/:backward like destination:forward or destination:lanes:backward. If a value for destination is found, the tag destination is set to it and the way is split. This happens before the style rules are processed. This allows to use any routable Garmin type (except 0x08 and 0x09) for that part so that the Garmin device tells the name of this part as hint which destination to follow. " Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> Gesendet: Samstag, 19. März 2016 20:51 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting Why do I get a result string: Exit 18 Beck Rd ~ Beck Road when the only command line with a ~ is : line 89 '${destination:street} ~ ${destination}' | 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. How is my string being formed? 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 Greg On Sat, Mar 19, 2016 at 3:04 PM, Gerd Petermann <GPetermann_muenchen@hotmail.com<mailto:GPetermann_muenchen@hotmail.com>> wrote: What problem do you have with echotags? I think it works good enough for questions like yours. Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von greg crago <gregcrago@gmail.com<mailto:gregcrago@gmail.com>> Gesendet: Samstag, 19. März 2016 18:58 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting Is there a different command which can print variables? On Sat, Mar 19, 2016 at 1:51 PM, Gerd Petermann <GPetermann_muenchen@hotmail.com<mailto:GPetermann_muenchen@hotmail.com>> wrote: No, echotags expects a string constant as parm, and it prints all tags of an object Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von greg crago <gregcrago@gmail.com<mailto:gregcrago@gmail.com>> Gesendet: Samstag, 19. März 2016 18:48 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting Since the result string was: Exit 18 Beck Rd ~ Beck Road The only place in the code with a "~" is line 89 '${destination:street} ~ ${destination}' | Can I use echotags to display the actual value of a variable {echotags ${destination}) ? Greg On Sat, Mar 19, 2016 at 10:37 AM, Gerd Petermann <GPetermann_muenchen@hotmail.com<mailto:GPetermann_muenchen@hotmail.com>> wrote: Hi Greg. when mkgmap:dest_hint=true matches than mkgmap has either found a destination tag in the OSM data or it has filled destination with one of the alternative values like destination:forward, destination:street, destination:lanes and so on. Maybe that is not a good idea, maybe mkgmap should fill a prefixed varible instead. Does that help? Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von greg crago <gregcrago@gmail.com<mailto:gregcrago@gmail.com>> Gesendet: Samstag, 19. März 2016 01:34 An: Development list for mkgmap Betreff: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting I have an exit with a highway=motorway_link and destination:street=Beck Road. I have a node with highway=junction and ref=18. I was trying to get: Exit 18 Beck Rd But I am getting: Exit 18 Beck Rd ~ Beck Road My line file contains: dest_hint=* { delete dest_hint } 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-}'; 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}'; } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:dest_hint=true { set dest_hint = '${destination:ref} ${destination:street} - ${destination}' | '${destination:ref} ${destination:street}' | '${destination:street} ~ ${destination}' | '${destination:ref} ^ ${destination}' | '${destination:street}' | '${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}' | '${exit_to|subst: Road=> Rd|subst: Street=> St|subst: Avenue=> Ave|subst: Mile=> Mi|subst: Boulevard=> Blvd|subst: Parkway=> Pkwy|subst: Highway=> Hwy}' | '${destination}'; } # build exit hint exit_hint=* { delete exit_hint } (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & mkgmap:exit_hint=true { set exit_hint = 'Exit ${mkgmap:exit_hint_ref}'; # '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}' | # 'Exit ${ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}' | # '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}' | # '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}' | # '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}' | # 'Exit ${mkgmap:exit_hint_ref|subst: South=> S|subst: North=> N|subst: East=> E|subst: West=> W}'; } # use destination hint and/or exit hint to build name (highway=motorway_link | highway=trunk_link | highway=primary_link | highway=secondary_link | highway=tertiary_link) & (mkgmap:exit_hint=true | mkgmap:dest_hint=true) { name '${exit_hint} ${dest_hint}' | '${dest_hint}' | '${exit_hint}'} I used different symbols to tell me which code is being executed. Since the result string contains a "~" I think it is executing '${destination:street} ~ ${destination}' which is strange, since there is no DESTINATION tag at all. Can someone see why I am getting "Exit 18 Beck Rd ~ Beck Road" when I should be getting "Exit 18 Beck Rd"? Attached are screenshots and actual osm.pbf data for just this intersection. Greg _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

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

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

Hi Greg, "why is "Beck Road" being set for variable $[destination] ??" I've answered this question multiple times now, seems my english is too bad, so I try again. The option --process-destination in mkgmap triggers a function that is execute when the OSM data is read and before your style rules are executed. This function checks a list of tags ike destination, destination:forward, destination:lanes and destination:street . When any of those is found mkgmap adds the tag mkgmap:dest_hint=true and if the tag destination is not already set it is set with the value that was found in the alternatives. I guess this happens because nobody tried to create detailed hints like you do. If I'd start to code this now I would simplify the code so that it sets mkgmap:dest_hint to the value that was found. So, instead of checking mkgmap:dest_hint=true one would use mkgmap:dest_hint=* If I change that now all style authors have to change the corresponding rules, so I'd like to get positive feedback for this idea before I change the code. Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> Gesendet: Montag, 21. März 2016 00:12 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting 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<mailto: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<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Gerd, Sorry to be so much trouble. Just trying to understand how mkgmap works. I have studied the OSM wiki page for EXIT INFO and I assumed that each tag would get it's own mkgmap:(variable) If a DESTINATION tag did not exits, I did not realize, it would be assigned to any other existing tags. 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. Your written english is perfect. When I went back to read your posts, I read this: "If a value for destination is found, the tag destination is set to it and the way is split." I just assumed that there would be nothing set for 'destination' if it did NOT exist. 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. 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. Thank you for your help. I was not trying to be difficult. Greg On Mon, Mar 21, 2016 at 4:01 AM, Gerd Petermann < GPetermann_muenchen@hotmail.com> wrote:
Hi Greg,
"why is "Beck Road" being set for variable $[destination] ??"
I've answered this question multiple times now, seems my english is too bad, so
I try again.
The option --process-destination in mkgmap triggers a function that
is execute when the OSM data is read and before your style rules are executed.
This function checks a list of tags ike destination, destination:forward, destination:lanes
and destination:street . When any of those is found mkgmap adds the tag mkgmap:dest_hint=true
and if the tag destination is not already set it is set with the value that was found in the
alternatives.
I guess this happens because nobody tried to create detailed hints like you do.
If I'd start to code this now I would simplify the code so that it
sets mkgmap:dest_hint to the value that was found. So, instead of checking
mkgmap:dest_hint=true one would use mkgmap:dest_hint=*
If I change that now all style authors have to change the corresponding rules,
so I'd like to get positive feedback for this idea before I change the code.
Gerd
------------------------------ *Von:* mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> *Gesendet:* Montag, 21. März 2016 00:12 *An:* Development list for mkgmap *Betreff:* Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting
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
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

I have another suggestion. Can you make a mkgmap:actual_destination variable that is set to the destination=* tag, if it exists. That was mappers would not have to change their code and I can just use this new variable to get the information I want. Greg On Mon, Mar 21, 2016 at 11:27 AM, greg crago <gregcrago@gmail.com> wrote:
Gerd,
Sorry to be so much trouble. Just trying to understand how mkgmap works. I have studied the OSM wiki page for EXIT INFO and I assumed that each tag would get it's own mkgmap:(variable)
If a DESTINATION tag did not exits, I did not realize, it would be assigned to any other existing tags.
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.
Your written english is perfect. When I went back to read your posts, I read this:
"If a value for destination is found, the tag destination is set to it and the way is split."
I just assumed that there would be nothing set for 'destination' if it did NOT exist.
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.
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.
Thank you for your help. I was not trying to be difficult.
Greg
On Mon, Mar 21, 2016 at 4:01 AM, Gerd Petermann < GPetermann_muenchen@hotmail.com> wrote:
Hi Greg,
"why is "Beck Road" being set for variable $[destination] ??"
I've answered this question multiple times now, seems my english is too bad, so
I try again.
The option --process-destination in mkgmap triggers a function that
is execute when the OSM data is read and before your style rules are executed.
This function checks a list of tags ike destination, destination:forward, destination:lanes
and destination:street . When any of those is found mkgmap adds the tag mkgmap:dest_hint=true
and if the tag destination is not already set it is set with the value that was found in the
alternatives.
I guess this happens because nobody tried to create detailed hints like you do.
If I'd start to code this now I would simplify the code so that it
sets mkgmap:dest_hint to the value that was found. So, instead of checking
mkgmap:dest_hint=true one would use mkgmap:dest_hint=*
If I change that now all style authors have to change the corresponding rules,
so I'd like to get positive feedback for this idea before I change the code.
Gerd
------------------------------ *Von:* mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> *Gesendet:* Montag, 21. März 2016 00:12 *An:* Development list for mkgmap *Betreff:* Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting
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
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Well, that would also work but I'd rather change the code to make it clearer instead of adding a work-around. I can add a simple check for the rule mkgmap:dest_hint = true and print a warning about the changed meaning and the need for change in the style. I'll prepare a patch... Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von greg crago <gregcrago@gmail.com> Gesendet: Dienstag, 22. März 2016 13:37 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting I have another suggestion. Can you make a mkgmap:actual_destination variable that is set to the destination=* tag, if it exists. That was mappers would not have to change their code and I can just use this new variable to get the information I want. Greg On Mon, Mar 21, 2016 at 11:27 AM, greg crago <gregcrago@gmail.com<mailto:gregcrago@gmail.com>> wrote: Gerd, Sorry to be so much trouble. Just trying to understand how mkgmap works. I have studied the OSM wiki page for EXIT INFO and I assumed that each tag would get it's own mkgmap:(variable) If a DESTINATION tag did not exits, I did not realize, it would be assigned to any other existing tags. 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. Your written english is perfect. When I went back to read your posts, I read this: "If a value for destination is found, the tag destination is set to it and the way is split." I just assumed that there would be nothing set for 'destination' if it did NOT exist. 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. 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. Thank you for your help. I was not trying to be difficult. Greg On Mon, Mar 21, 2016 at 4:01 AM, Gerd Petermann <GPetermann_muenchen@hotmail.com<mailto:GPetermann_muenchen@hotmail.com>> wrote: Hi Greg, "why is "Beck Road" being set for variable $[destination] ??" I've answered this question multiple times now, seems my english is too bad, so I try again. The option --process-destination in mkgmap triggers a function that is execute when the OSM data is read and before your style rules are executed. This function checks a list of tags ike destination, destination:forward, destination:lanes and destination:street . When any of those is found mkgmap adds the tag mkgmap:dest_hint=true and if the tag destination is not already set it is set with the value that was found in the alternatives. I guess this happens because nobody tried to create detailed hints like you do. If I'd start to code this now I would simplify the code so that it sets mkgmap:dest_hint to the value that was found. So, instead of checking mkgmap:dest_hint=true one would use mkgmap:dest_hint=* If I change that now all style authors have to change the corresponding rules, so I'd like to get positive feedback for this idea before I change the code. Gerd ________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von greg crago <gregcrago@gmail.com<mailto:gregcrago@gmail.com>> Gesendet: Montag, 21. März 2016 00:12 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Exit_hint and Dest_hint result is not what I was expecting 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<mailto: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<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (3)
-
Andrzej Popowski
-
Gerd Petermann
-
greg crago