基站定位API:满足大多数场景的定位需求

一、接口功能:三网基站,秒级定位

二、实战演示:根据基站信息查询位置

下面通过 Python 代码调用该接口

接口地址:https://market.aliyun.com/detail/cmapi00065871

import urllib3
import json

host = 'https://market.aliyun.com/detail/cmapi00065871'
path = '/cell/index'
method = 'GET'
appcode = '你自己的AppCode'   # 替换为真实 AppCode

querys = 'mnc=0&lac=33204&cellid=202944490'
url = host + path + '?' + querys

http = urllib3.PoolManager()
headers = {
    'Authorization': 'APPCODE ' + appcode
}
response = http.request('GET', url, headers=headers)
content = response.data.decode('utf-8')
data = json.loads(content)
print(json.dumps(data, indent=2, ensure_ascii=False))

返回字段解析

字段类型说明
latstring纬度(WGS84坐标系)
lngstring经度(WGS84坐标系)
radiusint定位精度半径(米),值越小精度越高
addrstring结构化地址描述
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值