[英]How to get GPS coordinate from HealthKit
With Healthkit, it is possible to get heathrate and other type of data. 使用Healthkit,可以获取健康数据和其他类型的数据。
How to retrieve the list of GPS coordinates ? 如何检索GPS坐标列表?
Is it possible ? 可能吗 ?
If you want to query the user's location real time, use the CoreLocation framework. 如果要实时查询用户的位置,请使用CoreLocation框架。 If you want the locations from a workout that the user already recorded using their Apple Watch, use
HKSampleQuery
to query for the user's HKWorkoutRoute
samples HKWorkoutRouteQuery
to get the location series associated with the sample ( documentation ). 如果要从用户已经使用其Apple Watch记录的锻炼中获取位置,请使用
HKSampleQuery
查询用户的HKWorkoutRoute
示例HKWorkoutRouteQuery
以获取与该示例关联的位置系列( 文档 )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.