I’m trying to use Maps JavaScript API with response from Google Maps Directions API to display driving routes passing some waypoints.
MapsRequestError: DIRECTIONS_ROUTE: NOT_FOUND: There was an issue performing a Directions request.
var origin=Georgenstraße 8, 82049 Pullach im Isartal, Deutschland
var destination=Nordallee 25, 85356 München-Flughafen, Deutschland
const directionsService = new google.maps.DirectionsService();
directionsService.route({
origin: origin,
destination: destination,
waypoints: waypts,
optimizeWaypoints: true,
durationInTraffic: true,
travelMode: google.maps.TravelMode.DRIVING,
unitSystem: google.maps.UnitSystem.METRIC,
}, (response, status) => {
console.log('response', response);
});
New contributor
Veena Hirani is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.