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

    定位结果

    interface LocationResult {
        accuracy: number;
        address?: string;
        altitude?: number;
        city?: string;
        country?: string;
        direction?: number;
        district?: string;
        latitude: number;
        longitude: number;
        name?: string;
        poi?: Poi[];
        provider?: string;
        province?: string;
        speed?: number;
        street?: string;
        streetNumber?: string;
        success: boolean;
        town?: string;
        village?: string;
    }
    索引

    属性

    accuracy: number

    精确度(米)

    address?: string

    地址描述

    altitude?: number

    海拔高度(米),室外定位时返回

    city?: string

    城市

    country?: string

    国家

    direction?: number

    方向(度),室外定位时返回

    district?: string

    区县

    latitude: number

    纬度

    longitude: number

    经度

    name?: string

    名称(POI 或地标)

    poi?: Poi[]

    周边 POI 列表

    provider?: string

    定位方式:gnss 卫星定位、network 网络定位、indoor 室内定位、rtk 室外高精度定位

    province?: string

    省份

    speed?: number

    速度(米/秒),室外定位时返回

    street?: string

    街道

    streetNumber?: string

    街道门牌号

    success: boolean

    是否成功

    town?: string

    乡镇

    village?: string