Google fit API:如何获取活动过程中的路线图? [英] Google fit API: How to get a map of the route taken during the activity?

查看:398
本文介绍了Google fit API:如何获取活动过程中的路线图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google Fit API开发健身应用程序。



查看Google fit app上的Google fit记录会话的这张照片:
此处



我想知道是否有可能让地图显示在屏幕的顶部。事实上,我知道如何调用History API来获取会话,但我无法弄清楚如何让地图显示用户在活动期间所采用的路线。



<我发现这个可能的重复主题(未答复): Google fit api:跟踪跑步/骑自行车时的距离/卡路里/速度



任何帮助将不胜感激!

解决方案

参考 Google开发人员博客



使用 Maps API ,您可以向用户展示他们的 路线 位置 放置标记 ,以便查看您提供的更多信息。
所有这些功能都可以使用您已经在Android上使用过的相同Maps API。查看 doc $ b


DevByte



代码示例

博客文章


了解更多。


I'm using Google Fit API to develop a fitness app.

Take a look at this picture of a google fit recorded session on the Google fit app: here

I would like to know if it's possible to get the map displayed at the top of the screen. In fact, I know how to call the History API to get sessions but I can't figure out how to get the map displaying the route taken during the activity by the user.

I found this possible duplicate topic (unanswered): Google fit api: get distance/calories/speed when tracking running/biking

Any help would be appreciated !

解决方案

With Reference to Google Developer Blog

Using the Maps API, you can show users their route, position, and place markers on the map they can tap to see more info you provide.
All of this functionality is available to you using the same Maps API you’ve already worked with on Android. Check out the doc,

DevByte

code sample

blog post

to learn more.

这篇关于Google fit API:如何获取活动过程中的路线图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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