多基站wifi混合定位

  • 数据类型: 位置服务
  • 接口状态: 正常
  • 已连接App的数量: 26376
  • 描述: 多基站定位,wifi高精度混合定位
  • API
  • 错误码
  • 价格与请求限制
  • 相关信息

接口地址: http://api.haoservice.com/api/viplbs

支持格式: json/xml

请求方式: GET/POST

请求示例: http://api.haoservice.com/api/viplbs?requestdata={"celltowers":[{"cell_id":"26353","lac":"24802","mcc":"460","mnc":"0","signalstrength":"-60"},{"cell_id":"14454","lac":"22831","mcc":"460","mnc":"0","signalstrength":"-71"},{"cell_id":"11433","lac":"22831","mcc":"460","mnc":"0","signalstrength":"-75"},{"cell_id":"10326","lac":"22831","mcc":"460","mnc":"0","signalstrength":"-76"},{"cell_id":"11431","lac":"22831","mcc":"460","mnc":"0","signalstrength":"-77"},{"cell_id":"26354","lac":"24802","mcc":"460","mnc":"0","signalstrength":"-79"},{"cell_id":"9561","lac":"24802","mcc":"460","mnc":"0","signalstrength":"-79"}],"wifilist":[{"macaddress":"00:0b:0e:7d:17:82","time":"0","singalstrength":"-8"},{"macaddress":"00:0b:0e:7d:17:84","time":"0","singalstrength":"-8"}],"mnctype":"gsm"}&type=0&key=您申请的APPKEY

请求参数:

名称 类型 必填 说明
key string API KEY
requestdata Object 参数对象(Json格式),查询数据中至少传入celltowers和wifilist中一组数据
      celltowers List 基站数据对象数组
              mcc Int mcc国家代码:中国代码;460
              mnc Int mnc网络类型0移动1联通(电信对应sid)
              cell_id Int 基站Id(电信对应bid)
              lac Int lac(电信对应nid)
              time Int 从检测到基站到请求定位服务的时 间,单位:毫秒
              signalstrength Int 当前基站广播的信号强度,单位是DBM <span style="color:red">注:DBM都是负数,定位准确与否的关键参数</span>
              timingadvance Int 移动台据以确定其发往基站的定时超前量,以补偿传播时延的信号。
      wifilist List wifi数据对象数据
              macaddress String WIFI结点(路由器)的MAC地址
              time Int 从检测到wifi热点到请求定位服务的时间,单位:毫秒
              singalstrength Int 当前WIFI广播的信号强度,单位是DBM <span style="color:red">注:DBM都是负数,定位准确与否的关键参数</span>
      mnctype Int 移动通讯类型 (gsm|cdma)
type String 返回坐标类型默认值 0(google坐标),1( 百度坐标),2(gps坐标)

返回字段:

名称 类型 说明
addressString位置
      regionString省份名称
      countyString区县名称
      cityString所属城市
      streetString街道名称
      street_numberString参照物描述
      countryString国家名称
addressDescriptionString地址描述
longitudeDouble经度
latitudeDouble纬度
accuracyString精度

JSON返回示例:

{"location": {"address": {"region":"江苏省", "county":"吴中区", "street":"唯亭镇", "street_number":"荷花广场", "city":"苏州市", "country":"中国" }, "addressDescription":"江苏省苏州市吴中区波特兰小街唯亭镇荷花广场波特兰小街东", "longitude":120.7259200,"latitude":31.2968700,"accuracy":"1000" }, "access_token":null, "ErrCode":0 }

备注:多基站定位,wifi高精度混合定位