Departure at any time

In your request for a route, you can use any to specify a route without a specific departure time.

If you specify departureTime as any, the route calculation will not take traffic flow and other time-dependent effects into account. Long-term closures (that is, current closures that last for more than a day) will still be considered. This can be useful when it is not certain that you're taking this route at a fixed time. departureTime=any is often referred to as "planning mode". Note that sending the same request with the parameter departureTime=any at different times may result in different responses.

curl -X GET \
  'https://router.hereapi.com/v8/routes?transportMode=car&origin=52.5308,13.3847&destination=52.5323,13.3789&return=summary&departureTime=any&apikey={YOUR_API_KEY}'
{
  "routes": [
    {
      "id": "a16f8848-7a20-4851-9c4a-f13d36ace433",
      "sections": [
        {
          "arrival": {
            "place": {
              "location": {
                "lat": 52.53232637420297,
                "lng": 13.378873988986016
              },
              "type": "place"
            }
          },
          "departure": {
            "place": {
              "location": {
                "lat": 52.53098367713392,
                "lng": 13.384566977620125
              },
              "type": "place"
            }
          },
          "id": "f4516966-c8b9-4098-974d-8ed1c46d2293",
          "summary": {
            "duration": 81,
            "length": 538
          },
          "transport": {
            "mode": "car"
          },
          "type": "vehicle"
        }
      ]
    }
  ]
}

results matching ""

    No results matching ""