<p></p>
<p>The reason we use <code>"ch.disable": vehicleType === "car"</code> is that this way we enforced another/slower algorithm that already supported turn restrictions. However this is broken at the moment because of a GH configuration issue (will be fixed soon) and on openstreetmap.org we get GraphHopper routing <em>without</em> turn restrictions support nonetheless.</p>
<p>There are two options:</p>
<ol>
<li>
<p><code>turn_costs=true&ch.disable=true</code>: This does not work at the moment but will be fixed soon. It will result in routing that does support turn restrictions but is a bit slower.</p>
</li>
<li>
<p><code>turn_costs=true</code> (remove the <code>ch.disable</code> parameter): This already works and results in faster routing than the first option. The only drawback is the longer data update cycle <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/karussell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/karussell">@karussell</a> mentioned.</p>
</li>
</ol>
<p>To avoid confusion in the blog article maybe I should have written that turn costs were already supported before but only for <code>/route</code> (not <code>/matrix</code>) and only using a slower algorithm.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2695#issuecomment-655655481">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJ6MQI4EUHCGBZXWT3R2SULXANCNFSM4OUTMPEQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLN67MG5UL4MKTZSRETR2SULXA5CNFSM4OUTMPE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE4KIEOI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2695#issuecomment-655655481",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2695#issuecomment-655655481",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>