user2322512
user2322512

Reputation: 43

How to find direction points using Google Maps API 3?

I am drawing a route in Google Maps. I have passed the start point, way points and end points. My route is drawing correctly. I am using Google Maps API 3.

request = {
  origin: originAddress,
  destination: destinationAddress,
  waypoints: waypoints,
  optimizeWaypoints: false,
  travelMode: google.maps.DirectionsTravelMode.DRIVING
};

directionsService.route(request, function(response, status) {
  if (status == google.maps.DirectionsStatus.OK) {
    directionsDisplay.setDirections(response);
  }
}

If I change the route direction, then how to find the changed direction points' latitude and longitude?

enter image description here

Please can anyone help me?

Upvotes: 1

Views: 1862

Answers (1)

Related Questions