匹配路线Api的KML示例

时间:2019-06-06 11:27:07

标签: here-api

我正在努力向

提交有效的POST
https://rme.api.here.com/2/matchroute.json

我的参数是

"routemode":"truck",
"filetype":"KML",
"height":2.55,
"width":4,
"length":12,
"file":"LINESTRING(9.9243505 59.5565351,9.9243505 59.5565351,9.9243505 59.5565351,9.9243505 59.5565351,9.9243505 59.5565351,9.9243505 59.5565351,9.9243505 59.5565351,9.9201715 53.4410191,9.9243505 59.5565351,9.9201715 53.4410191)"

响应为:

"400 - {"faultCode":"888afd7b-db9f-44c9-b1cc-5787de1199a5","message":"Cannot process kml. Content is not allowed in prolog.","responseCode":"400 Bad Request"}"

发布到Match Route API的有效KML是什么样的?

1 个答案:

答案 0 :(得分:0)

关于KML Match route API支持。

KML: Either <Placemarks> with <Points> or <Placemarks> with <LineStrings> can be submitted. Folders with multiple traces are not supported.

请参见以下线程了解KML格式。

KML file format or minimum requirements

我希望这会有所帮助。