Here api 从Here map Rest API获取地图图像

Here api 从Here map Rest API获取地图图像,here-api,Here Api,我试图通过here map REST API获取从航路点0到航路点1的地图图像 这是请求URL: http://image.maps.cit.api.here.com/mia/1.6/routing?waypoint0=:waypoint0lat%2C:waypoint0lng&waypoint1=:waypoint1lat%2C:waypoint1lng&mode=fastest%3Bcar%3Btraffic%3Adisabled&app_id=:app_id&

我试图通过here map REST API获取从航路点0到航路点1的地图图像

这是请求URL:

http://image.maps.cit.api.here.com/mia/1.6/routing?waypoint0=:waypoint0lat%2C:waypoint0lng&waypoint1=:waypoint1lat%2C:waypoint1lng&mode=fastest%3Bcar%3Btraffic%3Adisabled&app_id=:app_id&app_code=:app_code&lc=1652B4&lw=6&t=0&ppi=320&w=400&h=600

我得到的响应是一个带有数字和未知字符的大对象。我怎样才能把这个反应译成图像呢


谢谢

我能够使用来自的示例请求检索地图图像

在同一示例中使用坐标,图像标签应该能够在网页上为您呈现坐标

<html>
<head></head>
<body>
  <img src="http://image.maps.cit.api.here.com/mia/1.6/routing
?app_id={YOURAPPID}
&app_code={YOURAPPCODE}
&waypoint0=40.7369182,-73.9885248
&waypoint1=40.7051079,-74.0157525
&poix0=40.7499714,-73.9979574;00a3f2;00a3f2;11;.
&poix1=40.7456827,-73.9954344;white;white;11;.
&lc=1652B4
&lw=6
&t=0
&ppi=320
&w=400
&h=600
"/>
</body>

</html>

使用演示应用程序id、应用程序代码呈现


能否提供API文档的链接。在映像api.Yep中找不到路由。这里是链接:我检查了api,它会返回一个带有路线图的图像。它对你有用吗?是的,有用。我错误地认为我需要通过API发出请求来获取地图的图像,但是看起来我可以使用给定的URL。谢谢你的帮助!如何保存此图像文件或将其转换为base64?
<html>
<head></head>
<body>
  <img src="http://image.maps.cit.api.here.com/mia/1.6/routing
?app_id={YOURAPPID}
&app_code={YOURAPPCODE}
&waypoint0=40.7369182,-73.9885248
&waypoint1=40.7051079,-74.0157525
&poix0=40.7499714,-73.9979574;00a3f2;00a3f2;11;.
&poix1=40.7456827,-73.9954344;white;white;11;.
&lc=1652B4
&lw=6
&t=0
&ppi=320
&w=400
&h=600
"/>
</body>

</html>