在此处的地图图像API中用python在静态图像中绘制line/path

Draw line/path in static image in Map Image API of here with python

首先,我为我糟糕的英语道歉。

嗯,我的问题是:

如何根据此处地图的路由剩余 API 绘制 line/path?

我一直在阅读文档并到处搜索,但我找不到任何东西。

比如我有这个请求

https://route.ls.hereapi.com/routing/7.2/calculateroute.jsonapiKey{API_KEY}&waypoint0=geo!20.6981862304,-103.457267674&waypoint1=geo!20.5746776890814,-103.12193707481&mode=fastest;truck;traffic:disabled&limitedWeight=30.5&height=4.25&shippedHazardousGoods=harmfulToWater

在我得到的 JSON/geojson 中,我可以遍历步骤中给出的坐标,我想我可以用这些坐标制作一个 LineString,但我不知道具体怎么做。

如果有人知道我怎样才能得到这个,我将不胜感激。

差点忘了这道题,现在解决了才发现其实很简单。 有一个 url 可以获取带有路线的图像地图,我上次使用的是获取方向以及步骤,deuation 等

正确的 url 看起来像:

https://image.maps.ls.hereapi.com/mia/1.6/routing?apiKey=MYKEY&waypoint0=lat,log&waypoint2=lat,long&waypoint[n]=lat,long&t=5&z=11

和这张 url return 带有路线的图像。