简体   繁体   English

我如何在 android 应用程序中集成谷歌地图 AR 导航?

[英]How I can integrate google maps AR navigation within the android app?

I want to integrate the google map AR navigation in the Android app programmatically.我想以编程方式在 Android 应用程序中集成 google map AR 导航。 Please help me if someone has any idea regarding this.如果有人对此有任何想法,请帮助我。

Live View (AR navigation) is only available within the Google Maps app.实时视图(AR 导航)仅在 Google 地图应用程序中可用。 If you want to present Live View within your app, you could submit a Maps SDK for Android feature request for adding Live View navigation.如果您想在您的应用程序中呈现实时视图,您可以提交地图 SDK 以获取 Android 添加实时视图导航的功能请求

You can also use Google Maps Intents to open turn-by-turn navigation in the Google Maps app from your app, but there is no parameter to specify activating Live View so the user would have to locate and tap the Live View button once in Google Maps.您还可以使用Google Maps Intents从您的应用程序中打开 Google Maps 应用程序中的逐向导航,但没有指定激活实时视图的参数,因此用户必须在 Google 中找到并点击实时视图按钮一次地图。 If you would like to be able to launch Live View navigation in the Google Maps app from your app, you could submit a Maps URLs feature request for adding a Live View mode parameter.如果您希望能够从您的应用程序在 Google 地图应用程序中启动实时视图导航,您可以提交地图 URL 功能请求以添加实时视图模式参数。

In the meantime, here's a codelab teaching how to present nearby places in AR with ARcore alongside a map in your Android apps.同时,这里有一个代码实验室,教您如何使用 ARcore 在 Android 应用程序中显示附近的 AR 地点以及 map。 You could use the skills taught in it and combine with the Directions API to construct your own AR navigation experience.您可以使用其中教授的技能并结合 Directions API 构建您自己的 AR 导航体验。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM