定位
2021年04月12日

接口描述

请求路径:https://mapapi-places.apigw-gz.didiyunapi.com/api/v1/place/location

请求方法:POST

输入参数

参数名称 类型 必填 默认值 说明
valid_flag int 请求标识(1=纯基站 2=纯WIFI 3=基站与WIFI混合)
cell array<Cell> 基站信息(当valid_flag为1或3时必传)
wifis array<Wifi> wifi信息(当valid_flag为2或3时必传)

Cell:

参数名称 类型 必填 默认值 描述
mcc int 基站MCC
mnc_sid int GTW基站MNC / CDMA基站SID
lac_nid int GTW基站LAC / CDMA基站NID
cellid_bsid int GTW基站CID / CDMA基站 BSID
rssi int 基站信号强度
type int 基站类型 0=未知 1=GTW 2=CDMA 3=LTE
dt int 时间间隔 ,秒
rsrp int 基站下行信号强度
rsrq int 基站上行信号强度
pci int 基站物理编号
earfcn int 基站中心频点
pre_cell array<Cell> 前文基站
neighcells array<Cell> 周边基站,目前一般为空

Wifi:

参数名称 类型 必填 默认值 描述
mac string WIFI的MAC地址
level int WIFI信号强度
ssid string WIFI的名称
connect bool 是否连接
time_diff int 当前时间减去扫描到wifi的时间差

输出参数

参数名称 类型 描述
status int 状态码
info string 状态说明
result Result 请求返回数据

Result:

参数名称 类型 描述
location array<Location>

Location:

参数名称 类型 描述
confidence float 滴滴poi id
lat_gcj float 纬度
lon_gcj float 经度
accuracy int 半径

错误码

错误码:

示例

请求:

curl -X POST 'https://mapapi-places.apigw-gz.didiyunapi.com/api/v1/place/location' \
--header 'Authorization: AppCode XXX' \
-d '{
    "cell":{
        "type":3,
        "mnc_sid":0,
        "cellid_bsid":53517570,
        "mcc":460,
        "lac_nid":9448
    },
    "valid_flag":3,
    "wifis":[
        {
            "mac":"000c43e17618",
            "time_diff":3662,
            "level":-60
        },
        {
            "mac":"8c14b43c8718",
            "time_diff":3662,
            "level":-64
        },
        {
            "mac":"c0611860be54",
            "time_diff":3662,
            "level":-68
        },
        {
            "mac":"b83a08d15c90",
            "time_diff":3662,
            "level":-70
        },
        {
            "mac":"089b4b3202f1",
            "time_diff":3662,
            "level":-70
        },
        {
            "mac":"be54fc18dd64",
            "time_diff":3662,
            "level":-71
        },
        {
            "mac":"089b4b323c0b",
            "time_diff":3662,
            "level":-71
        },
        {
            "mac":"bc54fc1edd64",
            "time_diff":3662,
            "level":-72
        },
        {
            "mac":"fcd7332ecb48",
            "time_diff":12565,
            "level":-72
        },
        {
            "mac":"0050c252a0c7",
            "time_diff":3662,
            "level":-73
        },
        {
            "mac":"882593f46f90",
            "time_diff":3662,
            "level":-73
        },
        {
            "mac":"d0c7c0f63ee6",
            "time_diff":8114,
            "level":-74
        },
        {
            "mac":"b0958e09a40c",
            "time_diff":3662,
            "level":-75
        },
        {
            "mac":"089b4b32366b",
            "time_diff":3662,
            "level":-75
        },
        {
            "mac":"bc4699a81bb6",
            "time_diff":12565,
            "level":-75
        },
        {
            "mac":"9c0cdf00fb0f",
            "time_diff":12564,
            "level":-75
        },
        {
            "mac":"30fc68363fec",
            "time_diff":3662,
            "level":-76
        },
        {
            "mac":"b8f8838cae41",
            "time_diff":8114,
            "level":-76
        },
        {
            "mac":"e4d33202b082",
            "time_diff":3661,
            "level":-77
        },
        {
            "mac":"3496724e1dcd",
            "time_diff":3661,
            "level":-77
        },
        {
            "mac":"0840f3c09878",
            "time_diff":8114,
            "level":-78
        },
        {
            "mac":"00c6819e339f",
            "time_diff":3660,
            "level":-78
        },
        {
            "mac":"50bd5f6f19e6",
            "time_diff":3661,
            "level":-79
        },
        {
            "mac":"089b4b323b57",
            "time_diff":3662,
            "level":-79
        },
        {
            "mac":"d83214100c00",
            "time_diff":8114,
            "level":-79
        },
        {
            "mac":"6c5940cd6818",
            "time_diff":3661,
            "level":-80
        },
        {
            "mac":"089b4b323985",
            "time_diff":3662,
            "level":-80
        },
        {
            "mac":"30eb1f087398",
            "time_diff":3661,
            "level":-81
        }
    ]
}'

输出:

{
    "status": 0,
    "info": "OK",
    "result": {
        "confidence": 6.262648418997325,
        "lat_gcj": 23.285125850760874,
        "lon_gcj": 113.30290622062448,
        "accuracy": 2
    }
}

项搜索结果

    空空如也
    没有找到您要搜索的内容,请直接拨打服务热线400-0590-666