End route at different times

In your route request, you can use the arrivalTime parameter to specify a time at which the route should end.

A different arrivalTime will have various effects ranging from different traffic impact to road closures.

curl -X GET \
  'https://router.hereapi.com/v8/routes?transportMode=car&origin=52.5308,13.3847&destination=52.5323,13.3789&return=summary&arrivalTime=2019-10-02T17:00:00&apikey={YOUR_API_KEY}'
{
  "routes":[
    {
      "id":"a6e5dbb2-51ca-440b-a8a1-917455b46e75",
      "sections":[
        {
          "id":"2d02e1e2-5615-456a-a502-b455523d9566",
          "type":"vehicle",
          "departure":{
            "time":"2019-10-02T16:58:47+02:00",
            "place":{
              "type":"place",
              "location":{
                "lat":52.5309838,
                "lng":13.3845671
              },
              "originalLocation":{
                "lat":52.5307999,
                "lng":13.3847
              }
            }
          },
          "arrival":{
            "time":"2019-10-02T17:00:00+02:00",
            "place":{
              "type":"place",
              "location":{
                "lat":52.5323264,
                "lng":13.378874
              },
              "originalLocation":{
                "lat":52.5323,
                "lng":13.3789
              }
            }
          },
          "summary":{
            "duration":73,
            "length":539,
            "baseDuration":73
          },
          "transport":{
            "mode":"car"
          }
        }
      ]
    }
  ]
}

results matching ""

    No results matching ""