1

I'm trying to get directions for a user provided origin and destination, while showing directions to a middle location for ALL travel modes (driving, walking, bicycling, transit).

I have this coded using waypoints, but I just discovered that the Google Maps API doesn't support waypoints for public transit--as discussed in a previous question here.

I'm having difficulty finding any examples for how to go about piecing together multiple directions requests without using waypoints. Is there a way to add multiple directions to the directionsDisplay variable?

Example: Display directions from A -> B, then add directions from B -> C to the existing display.

4

1 回答 1

0

根据这个问题找到了我的答案:Multiple travel mode to render one map using google maps API

需要多个方向显示,将多个行程段(请求)发送到方向服务.route()。

于 2015-04-13T22:08:31.023 回答