有没有一种方法,以显示在谷歌地图API第2路方向? [英] Is there a way to show road directions in Google Map API v2?

查看:157
本文介绍了有没有一种方法,以显示在谷歌地图API第2路方向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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?

在此先感谢。

推荐答案

尝试这种解决方案<一href="http://stackoverflow.com/questions/14495030/google-map-api-v2-get-driving-directions/15053901#15053901">here
你可以开车或步行上V2方向

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

这篇关于有没有一种方法,以显示在谷歌地图API第2路方向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆