如何启动Google地图导航并获得应用程序的反馈? [英] How to launch Google Maps Navigation and get feedback in app?

查看:153
本文介绍了如何启动Google地图导航并获得应用程序的反馈?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Android应用中,我可以启动Google地图导航以启动驾车路线。不过,我希望能够获取我的应用(启动导航的应用)的反馈,并提供诸如到达时间和里程等信息。这可能吗?我需要使用onActivityResult()吗?

In my Android App, I am able to launch the Google Maps Navigation to initiate driving directions. However, I'd like to be able to get feedback into my app (the app that launched the navigation), with information such as time of arrival, and miles. Is this possible? Would I need to use onActivityResult ()?

推荐答案

要实现此功能,您需要使用Google Maps Directions API 文档)。

To achieve this functionality you will need to use the Google Maps Directions API (see the documentation).

另外,您还需要考虑其使用限制

Also, you will need to take into account its usage limits.

这篇关于如何启动Google地图导航并获得应用程序的反馈?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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