当前位置:网站首页>超图iServer rest服务之最佳路径分析
超图iServer rest服务之最佳路径分析
2022-07-30 11:28:00 【地理信息技术杂谈】
在超图地图iServer服务使用过程中,涉及到最佳路径分析,提供的是rest服务,通过传入对应的参数,返回数据的查询结果。
iServer中的最佳路径服务,对应是networkanalyst,可以使用超图官网提供的服务地址进行测试,地址如下:
http://support.supermap.com:8090/iserver/services/transportationanalyst-sample/rest/networkanalyst/[email protected]/path
在前端开发中,调用最佳路径分析查询的服务时,官网提供了调用的方式,需要引用
SuperMap iClient Classic类库,下载地址:
https://iclient.supermap.io/web/introduction/classic.html#introduce
具体的代码调用方式在github上(以SQL为例):
https://github.com/SuperMap/iClient-JavaScript/blob/master/examples/classic/analysis_findMTSPPaths.html
查询的条件是:输入经过的路径坐标节点,权值字段和转向权值,返回查询的路径结果。
不使用官网提供库,前端直接调用的url形式是:
http://support.supermap.com:8090/iserver/services/transportationanalyst-sample/rest/networkanalyst/[email protected]/path.json?nodes=[坐标或者id组]&hasLeastEdgeCount=false¶meter=
//配置参数
{“resultSetting”:{“returnEdgeIDs”:true,
“returnNodeIDs”:true,
“returnPathGuides”:true,
“returnRoutes”:true,
“returnEdgeFeatures”:true,
“returnEdgeGeometry”:true,
“returnNodeFeatures”:true,
“returnNodeGeometry”:true},
“weightFieldName”:“SmLength”}
根据返回的数据,能够进行路径的勾画。
公众号:地理信息技术杂谈
边栏推荐
- Leetcode 125. 验证回文串
- 三个点语法和DOM观察者
- 优酷VIP会员周卡只需7.5元,看《沉香如屑》用优酷视频
- AIX shell获取前几个月时间
- 基于加权灰色关联投影的Bagging-Blending多模型融合短期电力负荷预测
- 原生js 创建表格
- [Database basics] redis usage summary
- idea的package没有空心
- External Force Estimation Based on Time Delay Estimation with Perturbed Kalman Filter
- Voltage relay HDY - vac - 1 A / 1-220
猜你喜欢

EA中的业务对象和业务实体你分得清吗?

Introduction to IoT Technologies: Chapter 6

win下怎么搭建php环境的方法教程

基于.NetCore开发博客项目 StarBlog - (16) 一些新功能 (监控/统计/配置/初始化)

Reverse linked list - recursive inversion method

Drools 规则引擎一文读懂

干货|语义网、Web3.0、Web3、元宇宙这些概念还傻傻分不清楚?(中)

Apifox 生成接口文档 教程与操作步骤

横向对比5种常用的注册中心,无论是用于面试还是技术选型,都非常有帮助

HJY-F931A/YJ three-phase voltage relay
随机推荐
真正懂经营管理的CIO具备哪些特质
电流继电器JL-8GB/11/AC220V
Transfer Learning Technology Training
English line break
深入浅出零钱兑换问题——背包问题的套壳
Performance testing of API Gateway APISIX on Google Cloud T2A and T2D
Assembly to implement bubble sort
Manage reading notes upward
获取1688app上原数据 API
Typroa 替代工具marktext
LCD1602 display experiment developed by single chip microcomputer
I built another wheel: GrpcGateway
Reverse linked list - iterative inversion method
【ASP.NET Core】选项类的依赖注入
Redis master-slave replication
横向对比5种常用的注册中心,无论是用于面试还是技术选型,都非常有帮助
GBJ2510-ASEMI电机专用25A整流桥GBJ2510
2022-07-29 Gu Yujia Study Notes Exception Handling
The package of idea is not hollow
Interviewer: Redis bloom filter and the cuckoo in the filter, how much do you know?