@kyfe/kyemap-server-api

0.2.20 • Public • Published

kyemap-server-api

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

参数名称 类型 描述 是否必传 默认值
token String 登录后的令牌 -
appKey String 应用的唯一标识,根据实际项目传参 '50243'
timeout Number 请求超时时间(毫秒) 2000
headers Object 请求头配置,参考axios headers

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)
})

接口列表

函数名称 描述 文档地址
getNextLevelGeoInfos 查询边界信息 http://api.kyepm.com/open-api/interface/1419488814831841280
getRectangleByDistrictId 根据DistrictId查询面区域的中心点和矩形坐标 http://api.kyepm.com/open-api/interface/1194148625487302656
getLocationDes 位置详情(根据经纬度搜索位置信息及周边一定范围的poi点) http://api.kyepm.com/open-api/interface/1247770861477367808
getWebPoints 搜索点部(取派围栏-app移动端点部查询) http://api.kyepm.com/open-api/interface/1232987067151093760
findPosition 关键词查询地址 http://api.kyepm.com/open-api/interface/1082523023148388385
getBsmFindPosition 关键词查询地址(免登) http://api.kyepm.com/open-api/interface/1186105702438998016
getNetPostion 网点查询 http://api.kyepm.com/open-api/interface/1323957281114689536
getNetlocationDes 网点位置详情 http://api.kyepm.com/open-api/interface/1324180576805130240
getReverseGEO 逆地址解析 http://api.kyepm.com/open-api/interface/1145997252443049984
getAddressInfo 经纬度解析 http://api.kyepm.com/open-api/interface/1143777434876841984
queryNearByPoi 根据中心点和半径进行周边搜索Poi列表 http://api.kyepm.com/open-api/interface/1496043690826743808
findPositionNew 关键词联想 关键词搜索 http://api.kyepm.com/open-api/interface/1380045550940917761
getPointDetailById 取派围栏 - app移动端点部详情 http://api.kyepm.com/open-api/interface/1233782390500954112
getLastVehiclePlaceByAddresIds 车辆资产 - 获取点部 / 分拨车辆实时位置 http://api.kyepm.com/open-api/interface/1233668062292545536
latlonTolatlon 经纬度坐标系转换接口 http://api.kyepm.com/open-api/interface/1202839333534502912
setUpCoverImage APP点部图片 - 封面设置 http://api.kyepm.com/open-api/interface/1278534375115460608
deleteImages 取派围栏 - app移动端点部图片删除 http://api.kyepm.com/open-api/interface/1252512949674774528
getRegionPickerData 取派围栏 - app移动端三级地址查询接口(V1 .0) http://api.kyepm.com/open-api/interface/1234691545722064896
searchPoints 取派围栏 - app移动端点部查询 http://api.kyepm.com/open-api/interface/1232987067151093760
cityAlphabetical 网点查询 - 按照首字母对城市进行排序 http://api.kyepm.com/open-api/interface/1327431572544163840
batchByCode 数据字典 - 根据LookupCode批量查找数据字典详情 http://api.kyepm.com/open-api/interface/1080673825494994944
rangeFinding 调取引擎服务获取ETA和距离 http://api.kyepm.com/open-api/interface/1130441246027878400
getPickupDayAndDeliverDay 智能分单--根据经纬度查询取加工作日和派加工作日 http://api.kyepm.com/open-api/interface/1244543141993844736
findSlpInfo 根据自提网点id查询自提网点信息 http://api.kyepm.com/open-api/interface/1198125797214326784
searchDistribution 网点查询 - 配载搜索接口 http://api.kyepm.com/open-api/interface/1198125797214326784
getPointDetailsByOtherId 网点查询 - 取派围栏 - app移动端通过分组或点部id获取点部信息接口 http://api.kyepm.com/open-api/interface/1237649617088221184
getPointDetailsByLatLng 网点查询 - 获取点部信息, 地址后台-地址解析-经纬度分单 (V1.0) http://api.kyepm.com/open-api/interface/1112915731314446336
multiplePointsNavigation 货车多途经点导航(amap) (V1.0) http://api.kyepm.com/open-api/interface/1258714838489698304
getReverseGEOBatch 逆地理解析-批量30条 (V1.0) http://api.kyepm.com/open-api/interface/1316547204019785728
getOverlapTrackMatch 轨迹重合度分析 (V1.0) http://api.kyepm.com/open-api/interface/1501541102928343040
getMultiLevelThinkList 行政区划五级联想查询 http://api.kyepm.com/open-api/interface/1055030961582968832
getMultiLevelSubListDq 行政区划多级联动查询(包含大区) 新接口 http://api.kyepm.com/open-api/interface/1470680468741505024
getNavigationRouter 多途径点导航(同路线规划) http://api.kyepm.com/open-api/interface/1363464306638852096
getVehicleTrack 车辆历史轨迹查询 http://api.kyepm.com/open-api/interface/1165813817338302464
getRealTimeTrack 获取车辆实时纠偏轨迹和实时导航 http://api.kyepm.com/open-api/interface/1423598817155035136
getRealTimeTracks 获取车辆实时纠偏轨迹(批量) http://api.kyepm.com/open-api/interface/1423598158414426112
queryPoiTableTemplateDataById poi兴趣点详细查询 http://api.kyepm.com/open-api/interface/1704436065159421952
mulPointsNavigationCar 小车多途经点导航 http://api.kyepm.com/open-api/interface/1721824182321352704
trainRecommend 货车最优路线推荐 http://api.kyepm.com/open-api/interface/1449999617099907072
carRecommend 小车最优路线推荐 http://api.kyepm.com/open-api/interface/1722898865603026944
suggestPlus 经纬度搜索附近地址 http://api.kyepm.com/open-api/interface/1719536242601828352

Readme

Keywords

none

Package Sidebar

Install

npm i @kyfe/kyemap-server-api

Weekly Downloads

4

Version

0.2.20

License

ISC

Unpacked Size

212 kB

Total Files

12

Last publish

Collaborators

  • jiatesun0824
  • aichkyo
  • huangguangfa
  • kye-crm
  • insistem
  • zybieku
  • codexgea
  • pagebi888
  • kye-components
  • heyang_mj
  • linxingli
  • kyefe666
  • tim_cj