如何在Android上使用Google Maps Directions API?

Jha*_*ruz 5 java api android directions

我查看了Google Maps API说明文档,但它只是说了很多内容,有人可以向我展示如何在Android上使用Directions API的代码吗?

我只想让A点的线方向转到B点.

小智 1

是的,可以将 direcitons api 与地图集成。无需编写自己的 API。你可以很容易地实现这一点。使用 Google android api V2 无需绘制画布。在其中添加东西非常容易。

请阅读此处的 Google 地图https://developers.google.com/maps/documentation/android/start

以及路线

https://developers.google.com/maps/documentation/directions/

在此过程中,您有任何具体问题,请提出。

谢谢,