有没有一种方法,以显示在谷歌地图API第2路方向?方向、地图、方法、API

2023-09-13 00:46:30 作者:羡煞尘嚣

我一直在寻找使用谷歌和这里的答案,唯一相关的帖子中,我发现是:

I was looking for an answer using Google and here, and the only relevant posts i have found are:

谷歌地图Android的V2和方向API

谷歌地图API第2版 - 获得行车路线

但没有答案了。所以,我已经提到过它,但我会再说一遍。 我在寻找使用FragmentActivity和SupportMagFragment和经纬度对象的谷歌地图API V2的解决方案,而不是使用图形页面,MapActivtiy和GeoPoint对象。

but there is no answer there. So I have already mentioned it but I will say that again. I am looking for a solution for the Google Map API v2 using FragmentActivity and a SupportMagFragment and LatLng objects and not using MapView ,MapActivtiy and GeoPoint.

此外,我没有足够的覆盖对象使用,所以我无法描绘方向的地图上,是有这一种方法吗?

In addition i don't have the Overlay object to use so i can't paint the direction on the map, is there an alternative for that?

那么,有没有办法做到这一点?

So is there a way to do that?

在此先感谢。

推荐答案

尝试这种解决方案here 你可以开车或步行上V2方向

try this solution here you can get driving or walking direction on V2