{"id":715,"date":"2026-06-30T15:36:37","date_gmt":"2026-06-30T15:36:37","guid":{"rendered":"https:\/\/blog.geofabrik.de\/?p=715"},"modified":"2026-06-30T15:36:37","modified_gmt":"2026-06-30T15:36:37","slug":"new-in-osm-inspector-turn-restrictions","status":"publish","type":"post","link":"https:\/\/blog.geofabrik.de\/index.php\/2026\/06\/30\/new-in-osm-inspector-turn-restrictions\/","title":{"rendered":"New in OSM Inspector: Turn Restrictions"},"content":{"rendered":"<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/06\/restrictions-nancy.png\" alt=\"OSM Inspector screenshot showing turn restrictions \u2013 valid and invalid \u2013 in Nancy\" \/><\/p>\n<p>We&#8217;ve added a new <a href=\"https:\/\/tools.geofabrik.de\/osmi\/?view=turn_restrictions\">turn restrictions view<\/a> to OSM Inspector showing (almost) all restrictions and highlighting invalid ones.<!-- more --><\/p>\n<p>There are some turn restriction validators around already but they tend to be based on live Overpass queries and therefore are negatively affected by recent <a href=\"https:\/\/community.openstreetmap.org\/t\/overpass-api-performance-issues\/140598\">performance issues.<\/a> <\/p>\n<p>The turn restriction validator we have added to our tool <a href=\"https:\/\/github.com\/geofabrik\/osmi_simple_views\">osmi_simple_views<\/a> (which already creates the tagging, highways, geometry and places views from an up-to-date copy of the OpenStreetMap planet dump) does not require Overpass but instead writes its results to SQlite files in one go. These are then served to OSMI users as a slippy map (currently using Mapserver but this is <a href=\"https:\/\/community.openstreetmap.org\/t\/testet-den-neuen-osm-inspector\/143783\">subject to change<\/a> as we&#8217;re preparing a move to vector tiles).<\/p>\n<p>The code validates the number, types and roles of relation members. Tag values are checked except for conditional restrictions, <code>no_entry<\/code> and <code>no_exit<\/code> restrictions.<\/p>\n<p>We hope that you find this validator useful in improving the quality of OpenStreetMap data in your region.<\/p>\n<p>See the <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/OSM_Inspector\/Views\/Turn_Restrictions\">wiki page<\/a> for a description of all potential validation errors and suggestions how to fix them, and feel free to open an issue on GitHub if you find something amiss.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve added a new turn restrictions view to OSM Inspector showing (almost) all restrictions and highlighting invalid ones. There are some turn restriction validators around already but they tend to be based on live Overpass queries and therefore are negatively affected by recent performance issues. The turn restriction validator we have added to our tool [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/posts\/715"}],"collection":[{"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/comments?post=715"}],"version-history":[{"count":7,"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/posts\/715\/revisions"}],"predecessor-version":[{"id":724,"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/posts\/715\/revisions\/724"}],"wp:attachment":[{"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/media?parent=715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/categories?post=715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.geofabrik.de\/index.php\/wp-json\/wp\/v2\/tags?post=715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}