Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

kyemap-server-api

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

kyemap-server-api

> TODO: description

unpublished
latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

kyemap-server-api

对服务端api进行二次封装,简化使用

参数名称类型描述是否必传默认值
tokenString登录后的令牌-
appKeyString应用的唯一标识'50243'
tokenNumber请求超时时间(毫秒)2000
headersObject请求头配置,参考axios见下

herders

{
  "appkey": "***", // 同appKey
  "format": "json",
  "timestamp": "***", // 当前时间戳
  "method": "***",
  "sign": "***"
}

示例

const baseUrl = '/router/rest' // 根据项目环境进行设置,并配置对应代理
const token = '311148a0-29bb-4fc0-bfb4-40a52d5f719d'
const api = new.KyemapServerApi({ token, baseUrl })

const data = {
  districtId: 'XZ1-29',
  geoType: 'geo'
}
api.getNextLevelGeoInfos({data}).then(res => {
  console.info('res', res)
})
// 查询边界信息 参数  参考:http://api.kyepm.com/open-api/interface/1419488814831841280
getNextLevelGeoInfos().then()

// 路线规划 参数 参考:http://api.kyepm.com/open-api/interface/1363464306638852096
getPlanRoad().then()

// 位置详情 参数 参考:http://api.kyepm.com/open-api/interface/1247770861477367808
getLocationDes().then()

// 关键词查询 参数 参考:http://api.kyepm.com/open-api/interface/1082523023148388385
getFindPosition().then()

// 网点查询 参数 参考:http://api.kyepm.com/open-api/interface/1323957281114689536
getNetPostion().then()

// 网点位置详情 参数 参考:http://api.kyepm.com/open-api/interface/1363464306638852096
getNetlocationDes().then()

// 逆地址解析 参数 参考:http://api.kyepm.com/open-api/interface/1363464306638852096
getReverseGEO().then()

FAQs

Package last updated on 26 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts