Correctly swap from and to values when reversing directions

Closes #1752
Fixes #1748
This commit is contained in:
Jamie Guthrie 2018-02-14 06:49:41 +00:00 committed by Tom Hughes
parent 161ce947c3
commit 93d94bb1f9

View file

@ -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
}));
});