【问题标题】:How to immediately start Google Maps Navigation given an address?如何在给定地址的情况下立即启动谷歌地图导航?
【发布时间】:2016-02-08 03:56:53
【问题描述】:

我有兴趣创建一个按钮,该按钮将立即启动 Google 地图应用并开始将导航导航到特定地址。这可能吗?如果有,API 是什么?

我希望它立即开始导航,而不是强迫用户在不同的路线选项之间进行选择。

【问题讨论】:

标签: android google-maps google-maps-api-3 google-maps-android-api-2 android-maps-v2


【解决方案1】:

我发现了解决方案。为了立即调用谷歌地图直接导航,只需执行以下操作:

Intent intent = new Intent(android.content.Intent.ACTION_VIEW,
    Uri.parse("google.navigation:q=an+address+city"));

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-30
    • 1970-01-01
    相关资源
    最近更新 更多