0.高德规划路径api参见以下说明:
https://lbs.amap.com/api/webservice/guide/api/direction/
1.fme使用http请求函数,以驾车导航为例请求地址格式如下:
//restapi.amap.com/v3/direction/driving?key=您的key&origin=116.481028,39.989643&destination=116.434446,39.90816&originid=&destinationid=&extensions=base&strategy=0&waypoints=116.357483,39.907234&avoidpolygons=&avoidroad=
2.返回JS通过fme函数解析拼接,返回格式如下:
将不同的step构建为线段,然后将所有的step组合为完整的路径。