是否有 HERE 地图路由的批量请求 api?

is there a batch request api for HERE maps routing?

文档显示了如何向 geocoder api 提交批量请求。是否还有用于向路由 api 发送批量请求的文档,以便我可以一次发送多个 start/destination waypoints?

根据您的用例场景,Routing API V7 具有支持 MxN 路由计算的矩阵路由功能。多对多路由示例参见 here, and demonstration of a simple matrix routing see here.

Matrix routing API正是您想要的。在此示例中,矩阵路由计算 3 个起点和 5 个目标点之间的所有组合。这是从示例中提取的请求:

https://matrix.route.ls.hereapi.com/routing/7.2/calculatematrix.json?start0=52.5139%2C13.3576&start1=52.5214%2C13.4155&start2=52.5253%2C13.3693&destination0=52.5411%2C13.2127&destination1=52.5163%2C13.3780&destination2=52.4920%2C13.2849&destination3=52.4987%2C13.5228&destination4=52.5547%2C13.4578&mode=fastest%3Bcar&summaryattributes=all&apiKey=YOUR_API_KEY

响应包含 15 个路线摘要,其中包含距离、travelTime、costFactor 和 routeId。 RouteId 稍后可用于获取所选路线的路线 or/and 路线形状。