请您参考如下方法:
使用directions service Google map API v3。它与 Directions API 基本相同,但很好地封装在 Google Maps API 中,这也提供了在 map 上轻松呈现路线的便捷方法。
有关在 map 上渲染方向路线的信息和示例可以在 rendering directions section 中找到。 Google Maps API v3 文档。
请您参考如下方法:
使用directions service Google map API v3。它与 Directions API 基本相同,但很好地封装在 Google Maps API 中,这也提供了在 map 上轻松呈现路线的便捷方法。
有关在 map 上渲染方向路线的信息和示例可以在 rendering directions section 中找到。 Google Maps API v3 文档。