This ensures that the router will try to geocode the values rather
than assuming that they are latitude/longitude pairs.
Fixes #1684
lng = latlng.lng.toFixed(precision);
OSM.router.route("/directions?" + querystring.stringify({
- route: lat + "," + lng + ";" + $("#route_to").val()
+ from: lat + "," + lng,
+ to: $("#route_to").val()
}));
}
});
lng = latlng.lng.toFixed(precision);
OSM.router.route("/directions?" + querystring.stringify({
- route: $("#route_from").val() + ";" + lat + "," + lng
+ from: $("#route_from").val(),
+ to: lat + "," + lng
}));
}
});