function calcRoute() { var start = document.getElementById('startvalue').value; var end = document.getElementById('endvalue').value; var request = { origin: start, destination: end, travelMode: google.maps.DirectionsTravelMode.DRIVING }; directionsService.route(request, function (response, status) { if (status == google.maps.DirectionsStatus.OK) { directionsDisplay.setDirections(response); } }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)