基站查询
基站查询

基站查询

接口类型:位置服务
接口状态:正常
描述:
支持联通、移动、电信三网基站查询,通过CELLID和LAC获取位置的粗略信息。
  • 单基站查询
  • 接口地址:http://open.liupai.net/cell/query

    支持格式:JSON,JSONP

    请求方式:GET POST

    请求示例:http://open.liupai.net/cell/query?appkey=yourappsecret

    请求参数:

    参数名称 类型 必填 说明
    mnc int mnc网络类型:0移动,1联通(电信对应sid)
    lac int lac(电信对应nid)
    ci int cellid(电信对应bid)
    coord string 坐标类型(wgs84/gcj02/bd09),默认wgs84

    返回参数:

    参数名称 类型 说明
    lat string 纬度
    lon string 经度
    radius int 精度
    address string 地址

    JSON返回实例:

  • 反向基站查询
  • 接口地址:http://open.liupai.net/cell/recell

    支持格式:JSON,JSONP

    请求方式:GET POST

    请求示例:http://open.liupai.net/cell/recell?appkey=yourappsecret

    请求参数:

    参数名称 类型 必填 说明
    lat string 纬度
    lon string 经度

    返回参数:

    参数名称 类型 说明
    mnc int 移动网络代号
    lac int 小区号
    ci int 基站号
    location array 地址坐标
    lon string 经度
    lat string 纬度
    acc int ACC

    JSON返回实例:

  • 单WIFI查询
  • 接口地址:http://open.liupai.net/cell/wifi

    支持格式:JSON,JSONP

    请求方式:GET POST

    请求示例:http://open.liupai.net/cell/wifi?appkey=yourappsecret

    请求参数:

    参数名称 类型 必填 说明
    mac string WIFI热点的MAC地址(BSSID)
    coord string 坐标类型(wgs84/gcj02/bd09),默认wgs84

    返回参数:

    参数名称 类型 说明
    lat string 纬度
    lon string 经度
    radius int 精度
    address string 地址

    JSON返回实例: