GeolocationResult

此类作为Geolocation的getCurrentPosition方法的回调函数参数,不可实例化。

interface GeolocationResult {
    accuracy?: number;
    address?: GeolocationAddress;
    altitude?: number;
    altitudeAccuracy?: number;
    heading?: number;
    latitude?: number;
    longitude?: number;
    point?: Point;
    speed?: number;
    timestamp?: number;
}

属性

定位精度,单位为米

根据定位坐标点解析出的地址信息

海拔高度,设备不支持时为 null

海拔精度,设备不支持时为 null

设备朝向,正北顺时针角度,设备不支持时为 null

定位纬度

定位经度

定位坐标点

移动速度(米/秒),设备不支持时为 null

定位时间戳