You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何为HERE Maps等时线请求指定出发时间?

Hey there! Great question—let me break this down for you clearly:

HERE Time-Based Isoline Routing: Specifying Departure Time

Yes, the HERE time-based isoline API does support specifying a departure time—you just need to use the right parameter, which is slightly different from the standard route-placing endpoint you referenced.

Here's what you need to know:

  • For the basic "route from A to B" endpoint, you use the departure parameter. For isoline routing, the equivalent parameter is departureTime.
  • This parameter accepts two types of values:
    • Absolute time: Use an ISO 8601 formatted string, like 2024-05-20T08:30:00 (for 8:30 AM on May 20th, 2024)
    • Relative time: Use values like +30m (30 minutes from now), +2h (2 hours from now), or the default now (current time)
  • Example of adding it to your API call:
    https://isoline.route.ls.hereapi.com/routing/7.2/calculateisoline.json?apiKey=YOUR_KEY&mode=fastest;car;traffic:enabled&start=geo!52.5159,13.3777&range=600&rangeType=time&departureTime=2024-05-20T08:30:00
    

The reason you were seeing variable results before is that the default departureTime=now uses real-time traffic data, which changes throughout the day. By setting a fixed departure time, you'll get consistent isoline results based on the traffic conditions predicted for that specific time.

If you ever need to generate isolines based on historical traffic patterns (instead of real-time or predicted), you can pair departureTime with the traffic:historical mode parameter—but departureTime itself is the key to locking in your desired start time.

内容的提问来源于stack exchange,提问作者Negapizza

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 04:02:02