I am making a taxi fare calculator. One of the business requirements is that, the company wants the shortest and fastest route options. I know Google directionService by def
Use optimizeWaypoints: true in Request perameter. See below code snippet var request ={ origin: sStartLatLng, destination: sStartLatLng, waypoints: waypts, optimizeWaypoints: true, travelMode: google.maps.DirectionsTravelMode.DRIVING };