Google Maps API (JS) Create a route using PlaceId in waypoints
问题 The route create only if I use LatLng or String params but I need create it by PlaceId but it doesn't work example: directionsService.route({ origin: {'placeId': 'ChIJc1lGdwfP20YR3lGOMZD-GTM'}, destination: {'placeId': 'ChIJdTGhqsbP20YR6DZ2QMPnJk0'}, waypoints: [{stopover: true, location: new google.maps.Place('ChIJRVj1dgPP20YRBWB4A_sUx_Q')}], optimizeWaypoints: true, travelMode: google.maps.TravelMode.DRIVING } 回答1: Just need to pass the google.maps.Place object as the waypoint location. For