【问题标题】:DataSource for the location in google fit Rest APIgoogle fit Rest API 中位置的数据源
【发布时间】:2021-02-22 15:07:10
【问题描述】:

google fit rest API 中位置的数据源是什么?我无法找到任何位置数据源。我想从 google fit 应用程序访问该位置。有人知道我如何访问 datasourceID 的位置吗?

我使用以下获取请求来查找数据源列表。我找不到任何相关的 dataSourceID 位置。请建议怎么做

GET https://www.googleapis.com/fitness/v1/users/me/dataSources

【问题讨论】:

  • 根据文档:“注意:此数据只能由写入数据的应用程序读取。您的应用程序只能读取它写入的数据。它不能读取其他应用程序写入的位置样本数据”。来源:developers.google.com/fit/datatypes/location#location_sample
  • @KeeganTeetaert 您的评论是正确的。您应该将其发布为答案。
  • 所以无法获取我的 Google Fit 应用程序的位置?你能举一个我们可以访问数据的例子吗?
  • @GaneshCKM 如果您有一个应用程序在 Fitness API 中记录包含用户位置的健身数据,那么同一个应用程序将能够读取该位置。
  • @KeeganTeetaert 我尝试跟踪锻炼,它会跟踪我们步行和跑步的位置。但它没有将其显示为位置来源

标签: google-fit google-fit-api


【解决方案1】:

根据文档:

注意:此数据只能由写入数据的应用程序读取。您的 应用程序只能读回它写入的数据。它无法读取位置样本 其他应用写入的数据

来源:developers.google.com/fit/datatypes/location#location_sample

【讨论】:

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