设备定位参数说明

参数说明

浏览器环境设置需要用到的geo字段参数说明。

geo 字段格式

参数名 类型 是否必传 示例 说明
type String 禁用 类型:禁用、基于IP、自定义
value String 空字符串 固定为空字符串
custom String 自定义属性值。type字段为自定义时,则必须填入以下参数。
lat Integer 0 纬度
lon Integer 0 经度
accuracy Integer 0 精度
altitude Integer 0 海拔

示例

{
    "type": "禁用",
    "value": "",
    "custom": {
        "lat": 0,
        "lon": 0,
        "accuracy": 0,
        "altitude": 0
    }
}

{
    "type": "基于IP",
    "value": "",
    "custom": {
        "lat": 0,
        "lon": 0,
        "accuracy": 0,
        "altitude": 0
    }
}

{
    "type": "自定义",
    "value": "",
    "custom": {
        "lat": 23,
        "lon": 35,
        "accuracy": 1000,
        "altitude": 200
    }
}