当前位置:网站首页>超图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”}
根据返回的数据,能够进行路径的勾画。
公众号:地理信息技术杂谈
边栏推荐
猜你喜欢
深入浅出零钱兑换问题——背包问题的套壳
Still using Swagger?I recommend this interface management artifact with zero code intrusion
Verilog grammar basics HDL Bits training 08
高手云集、丰富活动,斩获佳绩,超过2万名开发者参与的AI社团邀你加入!
Voltage relay h2d SRMUVS - 100 vac - 2
HJY-F931A/YJ three-phase voltage relay
我又造了个轮子:GrpcGateway
Redis master-slave replication
contentDocument contentWindow,canvas 、svg,iframe
RY-D1/1 Voltage Relay
随机推荐
PanGu-Coder: 函数级的代码生成模型
contentDocument contentWindow, canvas, svg, iframe
contentDocument contentWindow,canvas 、svg,iframe
Drools 规则引擎一文读懂
UE5 GAS Study Notes Postscript 0
干货|语义网、Web3.0、Web3、元宇宙这些概念还傻傻分不清楚?(中)
物联网技术概论:第6章
Interviewer: Redis bloom filter and the cuckoo in the filter, how much do you know?
文本的对齐方式、行高、空间 等总结
LeetCode_235_Last Common Ancestor of Binary Search Tree
重写并自定义依赖的原生的Bean方法
牛客-TOP101-BM42
unity3d C#语言基础(继承)
MySQL——数据库基础
Horizontal comparison of 5 commonly used registration centers, whether it is used for interviews or technical selection, is very helpful
SCM engineers written questions induction summary
Meituan internal push + school recruitment written test + summary of knowledge points
Beyond Stream Processing!The 4th real-time computing Flink challenge is launched, and 490,000 prizes are waiting for you!
反转链表-迭代反转法
Program environment and preprocessing (detailed)