HERE地图等时线请求出发

HERE maps isochrone request departure

我正在关注这个例子:

https://developer.here.com/api-explorer/rest/routing/time-based-isoline-start-as-center

但它似乎总是 return 不同的结果取决于我调用它的时间。我想指定计算等时线的出发时间,但我在 simple routing example.

中看不到任何类似的信息

我可以指定这个参数还是只需要让我的程序在一天中的不同时间自动 运行(我提出这个解决方案只是开个玩笑)

您在调用 API 时得到不同的结果是因为路由算法在计算路由时考虑了交通速度和事件。

您可以使用 departure 查询参数在请求中设置出发时间,并将特定时间作为值,或者使用特殊值 now:

departure

Time when travel is expected to start. Traffic speed and incidents are taken into account when calculating the route. You can use now to specify the current time. It can be used only if parameter start is also used. Type: xs:dateTime.

departure=2013-07-04T17:00:00+02

注意:当未指定可选时区偏移量时,出发值假定为当地时间。

来源:Calculate Isoline API Reference