ymx-baidu-location
    正在准备搜索索引...

    接口 LocationOptions

    定位选项

    interface LocationOptions {
        coorType?: "gcj02" | "bd09ll" | "bd09";
        distanceInterval?: number;
        isNeedAddress?: boolean;
        isNeedLocationDescribe?: boolean;
        isNeedLocationPoiList?: boolean;
        locationMode?: "high_accuracy" | "battery_saving" | "device_sensors";
        timeInterval?: number;
    }
    索引

    属性

    coorType?: "gcj02" | "bd09ll" | "bd09"

    坐标类型

    select(gcj02, bd09ll, bd09)

    gcj02
    
    distanceInterval?: number

    连续定位距离间隔(米)

    number

    0
    
    isNeedAddress?: boolean

    是否需要地址信息

    switch

    true
    
    isNeedLocationDescribe?: boolean

    是否需要位置语义化信息

    switch

    false
    
    isNeedLocationPoiList?: boolean

    是否需要周边POI信息

    switch

    false
    
    locationMode?: "high_accuracy" | "battery_saving" | "device_sensors"

    定位模式

    select(high_accuracy, battery_saving, device_sensors)

    high_accuracy
    
    timeInterval?: number

    连续定位时间间隔(秒)

    number

    1