路线只创建一个使用PlaceId一个途径,如果我用经纬度或字符串PARAMS但我需要通过PlaceId创建它,但它不工作谷歌地图API(JS)创建航点
例如:
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
}
你试过选中此相关[SO问题](http://stackoverflow.com/questions/33990153 /传递到位-ID定位到目的地功能于谷歌 - 地图-API)?你的错误日志是什么? – abielita
我试过但没有结果。 placeId仅适用于原产地和目的地。我没有找到结果 –