process-exits vs process-destination

Hi all, is there a way to combine the features process-exits and process-destination in a single style ? Based on my experience process-desitnation does a marvellous job when entering a motorway ( does it also work with also trunk roads ? ), while process-extis is perfect when leaving a motorway or trunk road. For instance the roundabout here http://www.openstreetmap.org/?lat=47.89665&lon=10.64805&zoom=17 has two exits towards the B12. Routing from the "Sudetenstraße" going North (maybe towards Augsburg) I would like the Garmin device to announce "5 th Exit - B12 (München)". On the other hand routing to the South (maybe Kempten) it should announce "2nd exit - B12 (Kempten)". Using process-exits this does not work, it's only "5th Exit - B12" resp. "2nd Exit - B12". I would have to use process-destination instead to get the desired messages displayed. Coming home from the trip, routing from the B12 towards "Sudetenstraße" I would like "exit to the right - Exit Kaufbeuren". Using process-exits this works perfectly. Would I use process-destination I would get "exit to the right towards B12 Verteilerring" or even "exit to the right towards Sudetenstraße" a really useless announcement as the sign on the trunk road reads "Kaufbeuren / Neugablonz / Mauerstetten". So this is why I would like to have an option that combines the functionality of process-exits and process-destination. Do you see any way to achieve this in one single style ? Ciao, Franco

Hi Franco, process-exits and process-destination works fine together. In case the _link starts at an exit and contains a destination tag it is split and the middle part contains the tags: mkgmap:exit_hint=true mkgmap:dest_hint=true You can have a look at the default style how to use that: (highway=motorway_link | highway=trunk_link) & mkgmap:exit_hint=true & mkgmap:dest_hint=true { delete mkgmap:display_name; 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}' } (highway=motorway_link | highway=trunk_link) & mkgmap:exit_hint!=* & mkgmap:dest_hint=true { delete mkgmap:display_name; name '${destination:ref|subst: =>} ${destination|subst:;=> |subst:/=> }' | '${ref|subst: =>} ${destination|subst:;=> |subst:/=> }' | '${destination|subst:;=> |subst:/=> }' } (highway=motorway_link | highway=trunk_link) & mkgmap:exit_hint=true & mkgmap:dest_hint!=* { delete mkgmap:display_name; name '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}' } WanMil
Hi all,
is there a way to combine the features process-exits and process-destination in a single style ?
Based on my experience process-desitnation does a marvellous job when entering a motorway ( does it also work with also trunk roads ? ), while process-extis is perfect when leaving a motorway or trunk road.
For instance the roundabout here http://www.openstreetmap.org/?lat=47.89665&lon=10.64805&zoom=17 has two exits towards the B12.
Routing from the "Sudetenstraße" going North (maybe towards Augsburg) I would like the Garmin device to announce "5 th Exit - B12 (München)". On the other hand routing to the South (maybe Kempten) it should announce "2nd exit - B12 (Kempten)". Using process-exits this does not work, it's only "5th Exit - B12" resp. "2nd Exit - B12". I would have to use process-destination instead to get the desired messages displayed.
Coming home from the trip, routing from the B12 towards "Sudetenstraße" I would like "exit to the right - Exit Kaufbeuren". Using process-exits this works perfectly. Would I use process-destination I would get "exit to the right towards B12 Verteilerring" or even "exit to the right towards Sudetenstraße" a really useless announcement as the sign on the trunk road reads "Kaufbeuren / Neugablonz / Mauerstetten".
So this is why I would like to have an option that combines the functionality of process-exits and process-destination. Do you see any way to achieve this in one single style ?
Ciao, Franco
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi WanMil, thank you very much. This is really good news. i will try this as soon as possible. Ciao, Franco -- View this message in context: http://gis.19327.n5.nabble.com/process-exits-vs-process-destination-tp575646... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Hi, I found at website http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2013q2/017563.html a example to use process-exists and process-destination. But i do not understand, in which subfile of the style i shoud copy the code. Each Stylefile has subfile 'Options', relations, polygons ,points, lines and subdirectory inc . In which subfile the code must placed ? thanks

Hi Thomas, the default style contains the needed rules, look for mkgmap:exit_hint and mkgmap:dest_hint in the lines file. You will find 3 rather complex rules. Gerd Thomas Morgenstern-2 wrote
Hi, I found at website http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2013q2/017563.html a example to use process-exists and process-destination. But i do not understand, in which subfile of the style i shoud copy the code. Each Stylefile has subfile 'Options', relations, polygons ,points, lines and subdirectory inc . In which subfile the code must placed ? thanks _______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- View this message in context: http://gis.19327.n5.nabble.com/process-exits-vs-process-destination-tp575646... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Thanks, i iave found the default-stylet on github. thomas Am 08.10.2015 um 04:23 schrieb GerdP:
Hi Thomas,
the default style contains the needed rules, look for mkgmap:exit_hint and mkgmap:dest_hint in the lines file. You will find 3 rather complex rules.
Gerd
Thomas Morgenstern-2 wrote
Hi, I found at website http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2013q2/017563.html a example to use process-exists and process-destination. But i do not understand, in which subfile of the style i shoud copy the code. Each Stylefile has subfile 'Options', relations, polygons ,points, lines and subdirectory inc . In which subfile the code must placed ? thanks _______________________________________________ mkgmap-dev mailing list mkgmap-dev@.org http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- View this message in context: http://gis.19327.n5.nabble.com/process-exits-vs-process-destination-tp575646... Sent from the Mkgmap Development mailing list archive at Nabble.com. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Thomas, the default style is also in the packages that you can download from http://www.mkgmap.org.uk/download/mkgmap.html Gerd
Date: Thu, 8 Oct 2015 07:07:40 +0200 From: webmaster@img2ms.de To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] process-exits vs process-destination
Thanks, i iave found the default-stylet on github. thomas Am 08.10.2015 um 04:23 schrieb GerdP:
Hi Thomas,
the default style contains the needed rules, look for mkgmap:exit_hint and mkgmap:dest_hint in the lines file. You will find 3 rather complex rules.
Gerd
Thomas Morgenstern-2 wrote
Hi, I found at website http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2013q2/017563.html a example to use process-exists and process-destination. But i do not understand, in which subfile of the style i shoud copy the code. Each Stylefile has subfile 'Options', relations, polygons ,points, lines and subdirectory inc . In which subfile the code must placed ? thanks _______________________________________________ mkgmap-dev mailing list mkgmap-dev@.org http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- View this message in context: http://gis.19327.n5.nabble.com/process-exits-vs-process-destination-tp575646... Sent from the Mkgmap Development mailing list archive at Nabble.com. _______________________________________________ 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
participants (7)
-
Franco Bez
-
franco_bez
-
Gerd Petermann
-
GerdP
-
Thomas Morgenstern
-
Thomas Morgenstern
-
WanMil