<h4>Issue description</h4>
<p>The directions interface does not use the location that I click. Instead it somehow snaps to a nearest 'node' or grid.</p>
<h4>Steps to reproduce the issue</h4>
<ol>
<li>On the main map page, right-click on a location and select 'Directions from here'.</li>
<li>Right-click somewhere else and select 'Directions to here'.</li>
</ol>
<h4>What's the expected result?</h4>
<p>I should get directions from the exact location I clicked first, to the exact location I clicked second.</p>
<h4>What's the actual result?</h4>
<p>I get directions from some point near the location I clicked first, to some point near the location I clicked second.</p>
<h4>Additional details</h4>
<ul>
<li>Directions between arbitrary points are not impossible for the engine, as is evidenced by manually clicking and dragging the start and end nodes of the given directions to arbitrary points (they do not snap back then).</li>
<li>Possibly the cause of this behaviour is <a href="https://github.com/openstreetmap/openstreetmap-website/blob/999b9c69e1af252610a2ad338d33d16273fcc22f/app/assets/javascripts/index/contextmenu.js#L22">here</a>? (I wanted to try it out but I couldn't get the dev env running)</li>
</ul>
<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/issues/1911">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLcda1oID94b8F-JhejHMtt4fDenwks5t_Mm_gaJpZM4Uzk7p">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLSFy-asNgmGl7ZBY81YGdnBnT4Thks5t_Mm_gaJpZM4Uzk7p.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/issues/1911","url":"https://github.com/openstreetmap/openstreetmap-website/issues/1911","name":"View Issue"},"description":"View this Issue on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}}</script>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Directions interface does not use exact location when selected by right-clicking (#1911)"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/1911"}}}</script>
<script type="application/ld+json">{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Directions interface does not use exact location when selected by right-clicking (#1911)",
"sections": [
{
"text": "",
"activityTitle": "**MareinK**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@MareinK",
"facts": [
{
"name": "Repository: ",
"value": "openstreetmap/openstreetmap-website"
},
{
"name": "Issue #: ",
"value": 1911
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1911,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1911\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/openstreetmap-website/issues/1911"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 349064937\n}"
}
],
"themeColor": "26292E"
}</script>