From df699b9c22959c85ff83138360ec47d4849c3f41 Mon Sep 17 00:00:00 2001 From: Jamie Guthrie Date: Wed, 14 Feb 2018 06:49:41 +0000 Subject: [PATCH] Correctly from and to values when reversing directions Closes #1752 Fixes #1748 --- app/assets/javascripts/index/directions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index 165d57f40f..c0aed706c6 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -123,7 +123,7 @@ OSM.Directions = function (map) { OSM.router.route("/directions?" + querystring.stringify({ from: $("#route_to").val(), to: $("#route_from").val(), - route: from.lat + "," + from.lng + ";" + to.lat + "," + to.lng + route: to.lat + "," + to.lng + ";" + from.lat + "," + from.lng })); });