OSM Inspector/Views/Turn Restrictions

From OpenStreetMap Wiki
Jump to navigation Jump to search

The Turn Restrictions view in OSM Inspector shows restriction relations from OpenStreetMap and highlights invalid ones.

Overview

Turn restrictions are used in OpenStreetMap to model forbidden turning manoeuvrers at intersections. They can either describe a forbidden manoeuvrer or a manoeuvrer which is the only one permitted for vehicles arriving from a certain edge of the routing graph.

Data sources

All data in this view is derived from OSM data.

Data for the whole world is available in this view.

The OSM data processing of this view is done by osmi_simple_views.

Layers

The layers are organised into two sections:

Invalid restrictions

This section contains all restriction relations recognised as invalid. There are two layers: one for points (nodes), one for lines (ways).

Invalid value of type=* key: The value of type=* on that relation is wrong. * is the only valid value for restriction relations.

Invalid value of restriction=* key: The value of restriction=* on that relation is wrong. See the wiki page for a list of valid values.

Invalid value of key: The mentioned key has an invalid value. This message appears for restrictions limited to a certain vehicle class, e.g. restriction:hgv=*.

No restriction=* or restriction:*=*: The relations lacks a key describing what type of restriction it is. There are multiple possible reasons. If the relation has a type=restriction but it is no restriction but something else (e.g. a route relation or multipolygon with wrong type=*, change type=* to the correct one. If relation is limited to a vehicle class and tagged with restriction:STRANGE_VEHICLE_CLASS but the vehicle class is not supported by OSMI, submit an issue on GitHub or write an email to Geofabrik.

Way with empty role: All way members must have a role. See the wiki page for a list of valid roles.

Multiple from members: There must be only one member ways with the role role from; a no_entry restriction may have multiple from way members. This happens if a mappers splits a way and their editor does not support turn restrictions properly. Remove the member which is not connected to the via node/way(s) in order to repair the relation. If that happened recently and you believe that it was caused the software, not by its users, submit a bug report to the developer of the editor.

Multiple to members: same as with members of role role from, see previous paragraph

Via way and node in one relation: A restriction relation must have either one node with role role via or at least one way with role role via.

Invalid role for way member: A way must not have a role other than role from, role via or role to.

Invalid role for node member: Member nodes must have the role role via. A restriction relation must not have multiple member nodes.

Empty role for node member: Nodes must have the role role via. Please mind that a restriction relation must have either one node with role role via or at least one way with role role via.

Multiple via nodes: A restriction relation must not have multiple member nodes.

From way missing: The relation lacks a member way describing where the vehicle doing the described manoeuvrer comes from. Add the way if it is obvious from the history of the relation, aerial or satellite imagery. Consult street-level photographs like Mapillary or Panoramax. Ask the responsible mapper who created or modified the relation using a changeset comment if you are not sure.

To way missing: The relation lacks a member way describing where the vehicle doing the described manoeuvrer must (not) drive to. See previous paragraph for further details.

Via node or via way(s) missing: The relation lacks a node describing where the turn happens. Note that one or multiple ways may be used instead in complex situations to model the manoeuvrer correctly.

Start way not connected with via node: The way with role role from is not connected to the node with role role via. Reconnected it if it is obvious from the history of the relation, aerial or satellite imagery. Consult street-level photographs like Mapillary or Panoramax. Ask the responsible mapper who created or modified the relation using a changeset comment if you are not sure.

From way is not connected to any via way: The way with role role from is not connected to the way with role role via. See previous "Start way not connected with via node" for further information.

End way not connected with via node: The way with role role to is not connected to the node with role role via. See previous "Start way not connected with via node" for further information.

Via way not connected with from way: The last way with role role via (in order of driving) is not connected to the way with role role from. See previous "Start way not connected with via node" for further information.

Via way not connected with to way: The last way with role role via (in order of driving) is not connected to the way with role role to. See previous "Start way not connected with via node" for further information.

Via way is not connected to any other member: All ways with role role via must form a chain where each way is connected with its neighbours. The first via way must be connected to the way with role role from. The last way must be connected to the way with role role to. See previous "Start way not connected with via node" for further details.

Via way is not connected to the next via way: See previous paragraph.

Last via way is not connected to the to way: See "Via way is not connected to any other member".

Start way is a loop: A way with role role from should not be a loop because it ways are split by routing engines at intersections in order to build a routing graph. If such a way is a loop, there are multiple edges where the vehicle might arrive from. Fix it by splitting the way and remove one half from the relation if it is obvious from the history of the relation, aerial or satellite imagery. Consult street-level photographs like Mapillary or Panoramax. Ask the responsible mapper who created or modified the relation using a changeset comment if you are not sure.

Via way is a loop: Ways with role role from should not be a loop. See "Start way is a loop" for further information.

End way is a loop: Ways with role role to should not be a loop. See "Start way is a loop" for further information.

Valid restrictions

These layers contain way and node members of relations considered valid by OSMI.

Unsupported

Up to now, following types of restrictions are not validated: