这里路由 API 没有 HTML

Here Routing API without HTML

我想问一下是否可以禁用路由 API 响应的 html 标签。

例如:

Go to the <span class="company">U</span> station 
<span class="station">U Pankstr. (Berlin)</span> 
and take the <span class="transit">rail</span> 
<span class="line">U8</span> towards 

是回应。我想要这样的结果:

Go to the U station 
U Pankstr. (Berlin)
and take the rail
U8 towards 

我的 api 调用类似于此处的 api 调用示例: https://developer.here.com/documentation/routing/dev_guide/topics/request-a-simple-route.html

如果我能禁用 html 标签就好了。 提前致谢。

如果您将 instructionFormat 添加到 text,您将获得没有 html 标签的说明。示例:

https://route.api.here.com/routing/7.2/calculateroute.json ?app_id={YOUR_APP_ID} &app_code={YOUR_APP_CODE} &waypoint0=geo!52.5,13.4 &waypoint1=geo!52.5,13.45 &instructionFormat=text &mode=fastest;car;traffic:disabled