Changes between Version 30 and Version 31 of Help/Plugin/TurnRestrictions


Ignore:
Timestamp:
2011-06-13T01:14:32+02:00 (15 years ago)
Author:
skyper
Comment:

updates and fixes

Legend:

Unmodified
Added
Removed
Modified
  • Help/Plugin/TurnRestrictions

    v30 v31  
    44
    55== Introduction ==
    6 In OpenStreetMap a '''turn restriction''' limits navigation options. It represents the restriction that one cannot navigate from a [wiki:/Help/Concepts/Object way] to another way. For instance, the turn restriction depicted below forbids to drive straight. Vehicles have to turn left at the junction where the two ways meet (the so called via-node). Turn restrictions are important for routing and navigation software which are based on OSM data. 
     6In OpenStreetMap a '''turn restriction''' limits navigation options. It represents the restriction that one cannot navigate from a [wiki:/Help/Concepts/Object#Ways way] to another way. For instance, the turn restriction depicted below forbids to drive straight. Vehicles have to turn left at the junction where the two ways meet (the so called via-node). Turn restrictions are important for routing and navigation software which are based on OSM data. 
    77
    88[[Image(only_left_turn_sample.png)]][[BR]]
     
    1717Turn restrictions a standard map feature decribed on the [http://wiki.openstreetmap.org/wiki/Relation:restriction OSM wiki].
    1818
    19 Technically, a turn restriction is an OSM [wiki:/Help/Concepts/Object relation]. A turn restriction
     19Technically, a turn restriction is an OSM [wiki:/Help/Concepts/Object#Relations relation]. A turn restriction
    2020
    21  * must have a relation member with role {{{from}}} referring to a [wiki:/Help/Concepts/Object way]. We call this way the '''''from'''''-'''way'''.
    22  * must have a relation member with role {{{to}}} referring to a [wiki:/Help/Concepts/Object way]. We call this way the '''''to'''''-'''way'''.
    23  * must have at least of relation member with role {{{via}}} referring to a [wiki:/Help/Concepts/Object node] or [wiki:/Help/Concepts/Object way]. We call these objects '''''via'''''-'''object'''.
     21 * must have a relation member with role '''{{{from}}}''' referring to a [wiki:/Help/Concepts/Object#Ways way]. We call this way the '''''from'''''-'''way'''.
     22 * must have a relation member with role '''{{{to}}}''' referring to a [wiki:/Help/Concepts/Object#Ways way]. We call this way the '''''to'''''-'''way'''.
     23 * must have at least of relation member with role {{{via}}} referring to a [wiki:Concepts/Object#Nodes node] or [wiki:/Help/Concepts/Object#Ways way]. We call these objects '''''via'''''-'''object'''.
    2424
    2525{{{
     
    3030=== Creating a turn restriction ===#CreateANewTurnRestriction
    3131There are several possibilities to create a new turn restriction. First, you can lauch the Turn Restriction Editor for a new turn restriction from the Turn Restriction Toggle Dialog:
    32  1. Click on [[Image(source:/trunk/images/new.png)]] in the Turn Restriction Toggle Dialog. Alternatively, select [[Image(source:/trunk/images/new.png)]]'''New''' from the popup menu.
     32 1. Click on [[Image(source:/trunk/images/new.png,20)]] in the Turn Restriction Toggle Dialog. Alternatively, select [[Image(source:/trunk/images/new.png,20)]]'''New''' from the popup menu.
    3333
    3434Alternatively, you can launch a new editor with a keyboard shortcut:
    35  1. Press the shortcut for creating or editing a turn restriction. On most plattforms the shortcut is '''Ctrl-Shift-T'''.
    36  2. If objects in the current JOSM selection already participate in a turn restriction, the following window pops up.[[BR]]
    37     [[Image(create-turn-restriction-popup.png)]] [[BR]]
    38     Just click on  [[Image(source:/trunk/images/new.png)]] '''Create new turn restriction''' to launch the turn restriction editor for a new turn restriction. Alternatively, press the key '''n''' or hit '''Enter'''.
     35 1. Press the shortcut for creating or editing a turn restriction. On most plattforms the shortcut is '''{{{Ctrl+Shift+T}}}'''.
     36 2. If objects in the current JOSM selection already participate in a turn restriction, the following window pops up.
     37 
     38 [[Image(create-turn-restriction-popup.png)]] [[BR]]
     39 Just click on  [[Image(source:/trunk/images/new.png,20)]] '''Create new turn restriction''' to launch the turn restriction editor for a new turn restriction. Alternatively, press the key '''{{{N}}}''' or hit '''{{{Enter}}}'''.
    3940
    4041In both cases, the {{{turnrestrictions}}} plugin initializes the new turn restriction with objects from the current JOSM selection:
    41  1. The first selected way in the JOSM selection becomes the ''from''-way.
    42  2. The last selected way in the JOSM selection becomes the ''to''-way
    43  3. If the ''from''- and the ''to''-way have a node in common, this node becomes a ''via''-object.
     42 1. The first selected way in the JOSM selection becomes the '''''from'''''-way.
     43 2. The last selected way in the JOSM selection becomes the '''''to'''''-way
     44 3. If the '''''from'''''- and '''''to'''''-way have a node in common, this node becomes a ''via''-object.
    4445
    4546A fast way to create a turn restriction is therefore to
    46  1. Select the ''from''- and ''to''-way in JOSM
    47  2. Press '''Ctrl-Shift-T'''
     47 1. Select the '''''from'''''- and '''''to'''''-way in JOSM
     48 2. Press '''{{{Ctrl+Shift+T}}}'''
    4849 3. Choose the type of the turn restriction and save it.   
    4950   
     
    5152There are several possible ways to launch a Turn Restriction Editor in order to edit a turn restriction. First, you can lauch the Turn Restriction Editor for an existing turn restriction from the Turn Restriction Toggle Dialog:
    5253 1. Select a turn restriction in the Turn Restriction Toggle Dialog
    53  2. Click on [[Image(source:/trunk/images/dialogs/edit.png)]]. Alternatively, select [[Image(source:/trunk/images/dialogs/edit.png)]]'''Edit''' from the popup menu.
     54 2. Click on [[Image(source:/trunk/images/dialogs/edit.png,20)]]. Alternatively, select [[Image(source:/trunk/images/dialogs/edit.png,20)]]'''Edit''' from the popup menu.
    5455
    5556Second, you can launch a new editor with a keyboard shortcut:
    56  1. Press the shortcut for creating or editing a turn restriction. On most plattforms the shortcut is '''Ctrl-Shift-T'''.
     57 1. Press the shortcut for creating or editing a turn restriction. On most plattforms the shortcut is '''{{{Ctrl+Shift+T}}}'''.
    5758 2. If objects in the current JOSM selection already participate in a turn restriction, the following window pops up.[[BR]]
    5859    [[Image(create-turn-restriction-popup.png)]] [[BR]]
     
    6061
    6162A fast way to edit a turn restriction is therefore to
    62  1. Select the ''from''- or ''to''-way in JOSM
    63  2. Press '''Ctrl-Shift-T'''
    64  3. Type '''1''' to lauch the Turn Restriction Editor
     63 1. Select the '''''from'''''- or '''''to'''''-way in JOSM
     64 2. Press '''{{{Ctrl+Shift+T}}}'''
     65 3. Type '''{{{1}}}''' to lauch the Turn Restriction Editor
    6566 
    6667=== Deleting a turn restriction ===
    6768There are several possible ways to delete a turn restriction. First, you can delete it in the Turn Restriction Toggle Dialog:
    6869 1. Select a turn restriction in the Turn Restriction Toggle Dialog
    69  2. Press '''DEL''' or click on [[Image(source:/trunk/images/dialogs/delete.png)]]. Alternatively, select [[Image(source:/trunk/images/dialogs/delete.png)]]'''Delete''' from the popup menu.
     70 2. Press '''{{{DEL}}}''' or click on [[Image(source:/trunk/images/dialogs/delete.png,20)]]. Alternatively, select [[Image(source:/trunk/images/dialogs/delete.png,20)]]'''Delete''' from the popup menu.
    7071
    7172Alternatively, you can [#EditingATurnRestriction launch a Turn Restriction Editor] and click on  [[Image(source:/trunk/images/dialogs/delete.png)]] in its toolbar.
     
    8586
    8687You can apply some commands to the turn restrictions displayed in this dialog.
    87 ||'''Create''' a new turn restriction|| Click [[Image(source:/trunk/images/new.png)]] or select  [[Image(source:/trunk/images/new.png)]]'''New''' from the popup menu||
    88 ||'''Edit''' a turn restriction||Select the turn restriction and click [[Image(source:/trunk/images/dialogs/edit.png)]] or select  [[Image(source:/trunk/images/dialogs/edit.png)]]'''Edit''' from the popup menu||
    89 ||'''Delete''' a turn restriction||Select one or more turn restrictions, press '''DEL''', or click on [[Image(source:/trunk/images/dialogs/delete.png)]] or select [[Image(source:/trunk/images/dialogs/delete.png)]]'''Delete''' from the popup menu.||
    90 ||'''Select''' the turn restriction||In order to select the turn restriction and its members in the current edit layer, first select the turn restriction in the list and then select [[Image(source:/trunk/images/selectall.png)]]'''Select in current data layer''' from the popup menu.||
    91 ||'''Zoom''' to the turn restriction|| Select the turn restriction in the list and then select [[Image(source:/trunk/images/dialogs/autoscale/selection.png)]]'''Zoom to''' from the popup menu.||
     88||'''Create''' a new turn restriction|| Click [[Image(source:/trunk/images/new.png,15)]] or select  [[Image(source:/trunk/images/new.png,15)]]'''New''' from the popup menu||
     89||'''Edit''' a turn restriction||Select the turn restriction and click [[Image(source:/trunk/images/dialogs/edit.png,15)]] or select  [[Image(source:/trunk/images/dialogs/edit.png,15)]]'''Edit''' from the popup menu||
     90||'''Delete''' a turn restriction||Select one or more turn restrictions, press '''{{{DEL}}}''', or click on [[Image(source:/trunk/images/dialogs/delete.png,15)]] or select [[Image(source:/trunk/images/dialogs/delete.png,15)]]'''Delete''' from the popup menu.||
     91||'''Select''' the turn restriction||In order to select the turn restriction and its members in the current edit layer, first select the turn restriction in the list and then select [[Image(source:/trunk/images/selectall.png,15)]]'''Select in current data layer''' from the popup menu.||
     92||'''Zoom''' to the turn restriction||Select the turn restriction in the list and then select [[Image(source:/trunk/images/dialogs/autoscale/selection.png,15)]]'''Zoom to''' from the popup menu.||
    9293
    9394{{{
     
    105106
    106107=== Basic Editor === #BasicEditor
    107 The Basic Editor allows you to set the ''from''-way, the ''to''-way, and exceptions to the turn restriction for a selection of vehicle types.
     108The Basic Editor allows you to set the '''''from'''''-way, the '''''to'''''-way, and exceptions to the turn restriction for a selection of vehicle types.
    108109
    109 In order to set the ''from''-way
     110In order to set the '''''from'''''-way
    110111 1. Select a way in the current edit layer
    111112 2. '''Drag''' it from the list of selcted objects (on the left in the editor) onto the input field '''From:'''
     
    113114Alternatively, you can
    114115 1. Select a way in the current edit layer
    115  2. Copy  it (using '''Ctrl-C''' or [[Image(source:/trunk/images/copy.png)]]'''Copy''' in the popup menu) in the list of selcted objects on the right of the Turn Restriction Editor
    116  3. Click on the '''From:''' field and paste the copied way (using '''Ctrl-V''' or [[Image(source:/trunk/images/paste.png)]]''Paste'' from the popup menu)
     116 2. Copy  it (using '''{{{Ctrl+C}}}''' or [[Image(source:/trunk/images/copy.png,20)]]'''Copy''' in the popup menu) in the list of selcted objects on the right of the Turn Restriction Editor
     117 3. Click on the '''From:''' field and paste the copied way (using '''{{{Ctrl+V}}}''' or [[Image(source:/trunk/images/paste.png,20)]]'''Paste''' from the popup menu)
    117118
    118119[[Image(sample-screen-shot-1.png)]][[br]]
     
    164165To launch the preferences panel for the turnrestrictions plugin:
    165166
    166  1. Click on [[Image(source:/trunk/images/preference.png)]] in the JOSM toolbar or press '''F10'''.
    167  2. Click on [[Image(turnrestrictions.png)]] to display the preferences panel for the turnrestrictions plugin
     167 1. Click on [[Image(source:/trunk/images/preference.png)]] in the JOSM toolbar or press '''{{{F10}}}'''.
     168 2. Click on [[Image(http://trac.openstreetmap.org/export/HEAD/applications/editors/josm/plugins/turnrestrictions/images/preferences/turnrestrictions.png,20)]] to display the preferences panel for the turnrestrictions plugin
    168169
    169170[[Image(preferences-screen-shot.png)]] [[BR]]
     
    179180
    180181=== Configure shortcut for creating/editing a turn restriction ===
    181 In the preference dialog you can also configure the shortcut to create/edit a turn restriction. The default shortcut is '''Ctrl-Shift-T''' but you can change it to whatever shortcut you like.
     182In the preference dialog you can also configure the shortcut to create/edit a turn restriction. The default shortcut is '''{{{Ctrl+Shift+T}}}''' but you can change it to whatever shortcut you like.
    182183
    183 Be careful not to override already defined shortcuts, though. For instance, '''Ctrl-S''' is the defined shortcut for '''Save to file'''. If you set the turn restrictions shortcut to '''Ctrl-S''', then pressing '''Ctrl-S''' won't save the current layer any more. The turn restriction editor is launched instead.
     184Be careful not to override already defined shortcuts, though. For instance, '''{{{Ctrl+S}}}''' is the defined shortcut for '''Save to file'''. If you set the turn restrictions shortcut to '''{{{Ctrl+S}}}''', then pressing '''{{{Ctrl+S}}}''' won't save the current layer any more. The turn restriction editor is launched instead.
    184185
     186== See also ==
    185187
     188* [http://wiki.openstreetmap.org/wiki/JOSM/Plugins/turnrestrictions Turnrestriction Plugin page] at OSM wiki
     189
     190----
     191Back to [wiki:Help/Plugins Plugin Help][[BR]]
     192Back to [wiki:/Help Main Help]