<p>There are various reasons. Depending entirely on sites operated by third parties is not something we've done in the past, so we would want at least one routing engine we run ourselves (if not run all routing engines ourselves). Allowing third parties to display JSON content on our site might have security implications that existing third-party content (tiles) has not. Not handling requests through the rails backend would mean that the routing cannot use existing localisation and user preferences. - There has been a solution like the one you propose, a long time ago, by Nic Roets (author of gosmore), and it was rejected because it was entirely Javascript. Maybe the world has changed since then.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/issues/381#issuecomment-21549206'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOprxpGPSjCb8GVXsm7DOHOWTLBdaZz1TF04qWM_RugImN.gif' height='1' width='1'></p>