当前位置:网站首页>超图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”}
根据返回的数据,能够进行路径的勾画。
公众号:地理信息技术杂谈
边栏推荐
- Meituan internal push + school recruitment written test + summary of knowledge points
- 分布式限流 redission RRateLimiter 的使用及原理
- Niuke-TOP101-BM42
- Verilog语法基础HDL Bits训练 07
- C# 枚举类型 于xaml 中区别
- SQL language and paging rownum analysis in Oracle
- PanGu-Coder: Function-level code generation model
- "Learning Cloud Networking with Teacher Tang" - Problem Location - The host is working but the container is not working
- Program environment and preprocessing (detailed)
- 干货|语义网、Web3.0、Web3、元宇宙这些概念还傻傻分不清楚?(中)
猜你喜欢

电流继电器JL-8GB/11/AC220V

360闷声干大事获赞无数,数字安全如何保障?还得看企业安全云

真正懂经营管理的CIO具备哪些特质

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

C language - bitwise operations

Introduction to IoT Technologies: Chapter 6

数据库性能系列之索引(上)

API 网关 APISIX 在Google Cloud T2A 和 T2D 的性能测试

Beyond Stream Processing!The 4th real-time computing Flink challenge is launched, and 490,000 prizes are waiting for you!

【JZ64 求1+2+3+...+n】
随机推荐
C language - bitwise operations
Horizontal comparison of 5 commonly used registration centers, whether it is used for interviews or technical selection, is very helpful
【梦想起航】
《跟唐老师学习云网络》 - 问题定位 - 主机通但容器不通
ADC0808/9 signal acquisition developed by single chip microcomputer
基于滑模控制的不确定中立型系统有限时间稳定
Differences between lock spin and mutex usage scenarios
美团内推+校招笔试题+知识点总结
【数据库基础】redis使用总结
Leetcode 125. 验证回文串
IO/多路复用(select/poll/epoll)
Hu-cang integrated e-commerce project (1): project background and structure introduction
win下怎么搭建php环境的方法教程
我又造了个轮子:GrpcGateway
Concepts of cloud-native applications and 15 characteristics of cloud-native applications
京东校招笔试题+知识点总结
Introduction to IoT Technologies: Chapter 6
[Cloud-Building Co-creation] Huawei Cloud and Hongmeng collaborate to cultivate innovative developers
Based on sliding mode control of uncertain neutral system finite time stable
柔性机械系统分布参数建模及其控制的研究与进展