Skip to content

Commit

Permalink
Correctly from and to values when reversing directions
Browse files Browse the repository at this point in the history
  • Loading branch information
jguthrie100 authored and tomhughes committed Feb 14, 2018
1 parent 161ce94 commit df699b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/index/directions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}));
});

Expand Down

0 comments on commit df699b9

Please sign in to comment.