文档中心

From beginner to expert, one-stop documentation solution

快速开始

准备工作

开始使用前,请确保您已经注册账号并获取了 API 密钥。

安装SDK

npm install @lbssoft/positioning-sdk

初始化配置

import { LBSClient } from '@lbssoft/positioning-sdk';

const client = new LBSClient({
  apiKey: 'your_api_key',
  region: 'CN',
  timeout: 5000
});

使用示例

// 基站定位
const cellResult = await client.locateByCell({
  mcc: 460,
  mnc: 0,
  lac: 4301,
  cid: 20986
});

// WiFi定位
const wifiResult = await client.locateByWifi({
  wifiList: [
    { mac: "00:0c:29:8c:11:2c", rssi: -50 },
    { mac: "00:0c:29:8c:11:2d", rssi: -60 }
  ]
});

下一步

详细配置

了解更多配置选项和高级功能

查看配置文档 →

API参考

浏览完整的API文档和示例

查看API文档 →

需要帮助?

如果您在使用过程中遇到任何问题,请查看我们的常见问题联系技术支持