Android版谷歌地图导航V2 [英] Android google maps v2 navigation

查看:138
本文介绍了Android版谷歌地图导航V2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用谷歌地图V2用于显示我的应用程序的位置。当我想要导航至特定位置我用下面的code这将启动安装在我的手机默认的导航应用。

 意图导航=新意图(Intent.ACTION_VIEW,Uri.parse(http://maps.google.com/maps?saddr=aa,bb&daddr=xx,yy ));
startActivity(导航);

所以,很显然,我们将离开我们的应用程序并进入默认的导航应用。有没有我可以在谷歌地图是在我的应用程序本身要显示在做转由turn导航任何机会?


解决方案

  

有没有办法,我可以这是在我的应用程序本身显示的谷歌地图内做到这一点航行的任何机会呢?


不幸的是没有。谷歌不公开的turn-by-turn导航引擎,所以你可以用谷歌地图V2得到最大的利用是从路线API返回的路线点显示的路线。实际转由转需要可以通过谷歌的专有导航应用程序完成

I'm using google map v2 for showing locations in my application. When I want to navigate to that particular location I use the following code which starts the default navigation application installed in my phone.

Intent navigation = new Intent(Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?saddr=aa,bb&daddr=xx,yy"));
startActivity(navigation);

So obviously we will leave our application and go to the default navigation application. Is there any chance that I can do the turn-by-turn navigation within the google map which is to be shown in my application itself?

解决方案

Is there any chance that I can do this navigation within the google map which is shown in my application itself?

Unfortunately no. Google does not expose turn-by-turn navigation engine, so the maximum you can get with Google Map V2 is display route using route points returned from Route API. Actual turn-by-turn needs to be done via proprietary Google Navigation app

这篇关于Android版谷歌地图导航V2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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