logo separator

Exit hints

25
Jan

There is a new feature to help creating rules in the style file that help with writing style rules that give a bit more help about motorway exits.

The default style is not affected, this is for style authors to use in their styles. It may not work the same on all devices, so you should experiment with the results.

Usually Garmin devices do not display the name of the exit on motorways while routing with mkgmap created maps. The new feature allows you to create a style rule that names part of the exit link road with the junction number, so that when the device tells you to turn onto that road it will include the junction number.

To make this work you have to specify the --process-exits option. This works by splitting each motorway_link into three parts. All parts are tagged with the original tags of the motorway_link. Additionally the middle part is tagged with the following tags:

 mkgmap:exit_hint=true
 mkgmap:exit_hint_ref=ref # tag value of the motorway exit
 mkgmap:exit_hint_name=name # tag value of the motorway exit
 mkgmap:exit_hint_exit_to=exit_to # tag value of the motorway exit

Adding a rule checking that mkgmap:exit_hint=true makes it possible to use Garmin type 0x01 (motorway) for the middle part so that the Garmin device displays the name of this middle part as a hint where to leave the motorway.

An example of such a rule is given below.

highway=motorway_link & mkgmap:exit_hint=true
   { delete 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}' }
    [0x1 road_class=3 road_speed=2 level 1]
Posted by steve on 25 Jan 2013

Latest commits

  • mkgmap-r4262 improve default style (defaultStyleTidy3e.patch by Ticker Berkin with small modifications).
    11 jan 2019
  • mkgmap-r4261 don't treat amenity=shelter + shelter_type=public_transport like other shelters.
    07 jan 2019
  • mkgmap-r4260 prevent IndexOutOfBoundsException for special case where wrong house number intervals cause a road to be split into > 0x3ff segements..
    28 dec 2018
  • mkgmap-r4259 apply_first-v2.patch: Implement and document new apply_first style command..
    13 dec 2018
  • splitter-r592 route-complete.patch: Implement a new option --route-rel-values which tells splitter that route relations of the given type should be kept complete. ....
    13 dec 2018
See more...