当前位置:网站首页>超图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”}
根据返回的数据,能够进行路径的勾画。
公众号:地理信息技术杂谈
边栏推荐
猜你喜欢

RY-D1/1电压继电器

Verilog语法基础HDL Bits训练 07

文本的对齐方式、行高、空间 等总结

STM32F1读取MLX90632非接触式红外温度传感器

Verilog grammar basics HDL Bits training 08

Horizontal comparison of 5 commonly used registration centers, whether it is used for interviews or technical selection, is very helpful

Drools 规则引擎一文读懂

PL5920 SOT-23-6 21V、2A、600KHz同步降压DC/DC转换器

ansible学习笔记01

24. 两两交换链表中的节点
随机推荐
How to add data to the request header when feign is called remotely
Vim plugin GrepIt
高手云集、丰富活动,斩获佳绩,超过2万名开发者参与的AI社团邀你加入!
Based on sliding mode control of uncertain neutral system finite time stable
Detailed explanation of @RequestBody and @ResponseBody
[Database basics] redis usage summary
API 网关 APISIX 在Google Cloud T2A 和 T2D 的性能测试
【云筑共创】华为云携手鸿蒙,端云协同,培养创新型开发者
重写并自定义依赖的原生的Bean方法
自定义查询--关于倒排索引的研究
云原生应用的概念和云原生应用的 15 个特征
Database transactions, JDBC operations and data types
feign远程调用时如何在请求头加入数据
idea的package没有空心
Difference between C# enumeration type and xaml
LeetCode_236_二叉树的最近公共祖先
面试官:Redis中的布隆过滤器与布谷鸟过滤器,你了解多少?
[ASP.NET Core] Dependency Injection for Option Classes
域名怎么注册备案解析?
久经沙场的程序员居然也被某鱼的假程序员骗了,程序员之间的信任应该是最高的,他一个人毁了这种信任感