<p>I've sketched out an alternate UI for a directions flow.</p>

<p><a href="https://f.cloud.github.com/assets/98601/2463371/5cf3eba8-af8b-11e3-9f8a-ee19b6555248.png" target="_blank"><img src="https://f.cloud.github.com/assets/98601/2463371/5cf3eba8-af8b-11e3-9f8a-ee19b6555248.png" alt="image" style="max-width:100%;"></a></p>

<p>In this variant, clicks on the map result in a "search" operation for the clicked coordinate. The results page for coordinate searches is pared down to a single nominatim result and buttons to switch to a directions search starting or ending at the chosen coordinate.</p>

<p>Not implemented yet, but how I envision subsequent interactions to work is that once you click "to here" or "from here", the search sidebar disappears, leaving just the directions search form. At that point, clicks on the map fill in the second search parameter and submit the form.</p>

<p>Code in <a href="https://github.com/jfirebaugh/openstreetmap-website/tree/routing">my fork</a>.</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/pull/716#issuecomment-38082002'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/1419053__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMDg2OTUyMCwiZGF0YSI6eyJpZCI6MjcyNTIxNjJ9fQ==--a8bfa8ac1233fbe7526e3195a259ca13e21b0687.gif' height='1' width='1'></p>