MAP路徑規畫能否做到多點規劃

73 views
Skip to first unread message

孟鴻

unread,
Jul 8, 2009, 2:29:08 AM7/8/09
to Google API 技術論壇
目前能做的是路徑的兩點規劃,
請問API是否提供有多點的路徑規畫。

Kevin Liu

unread,
Jul 8, 2009, 5:54:02 PM7/8/09
to 孟鴻, Google API 技術論壇
The GDirections object supports multi-point directions, as mentioned in: http://code.google.com/apis/maps/documentation/services.html#RoutesAndSteps.

You can either use a format such as "from: Toronto to: Ottawa to: New York", or use loadFromWaypoints which accepts an array.

2009/7/8 孟鴻 <aids...@gmail.com>
目前能做的是路徑的兩點規劃,
請問API是否提供有多點的路徑規畫。




--
Kevin Tsung-Yuan Liu
Google Taipei Software Engineer
Reply all
Reply to author
Forward
0 new messages