2014-02-25 17 views
1

我知道我們不允許使用谷歌地圖API航點爲TRANSIT,有沒有什麼辦法(可能),我們可以解決這個問題有谷歌地圖找到一個方向到多個地址在途中,但只有TRANSIT?如何使用谷歌地圖的航點爲TRANSIT

+0

你是什麼意思的航點多個地址?僅供參考 - [航點不支持TRANSIT請求](https://developers.google.com/maps/documentation/javascript/directions#Waypoints),在WALKING方向允許AFAIK航點。 – geocodezip

+0

從[documentation](https://developers.google.com/maps/documentation/javascript/directions#Waypoints):'如DirectionsRequest中所述,您還可以在計算路線時指定航點(類型DirectionsWaypoint)提供步行,騎自行車或駕車路線指引服務。航點不適用於公交路線。' – geocodezip

+0

嗨,對不起,我可憐的換文。我的意思是我想爲TRANSIT使用航點(這是不允許的),我不知道是否有辦法解決那個問題。謝謝。 – Kiddo

回答

2

documentationAs noted within the DirectionsRequest, you may also specify waypoints (of type DirectionsWaypoint) when calculating routes using the Directions service for walking, bicycling or driving directions. Waypoints are not available for transit directions.

唯一的「變通」是讓多個獨立的方向要求,並指出,路線服務受配額和速率限制。