AMapLocationProvider
对高德定位 SDK 进行封装,使其可以作为位置信息的数据源。
sampleType
Section titled “sampleType”sampleType()
获取 AMapLocationProvider 的地理位置采集类型,"timeInterval"和"distaneInterval"两种类型。
String
timeInterval
Section titled “timeInterval”timeInterval()
获取 AMapLocationProvider 按照时间间隔采集时的时间频率,单位为毫秒。
Int
distaneInterval
Section titled “distaneInterval”distaneInterval()
获取 AMapLocationProvider 按照距离间隔采集时的距离界限,单位为米 。
Float
getCurrentPosition
Section titled “getCurrentPosition”getCurrentPosition()
获取当前的地理位置信息,数据的采集不受 timeInterval 和 distaneInterval 的限制。
Promise<Position>