Generate route handle

To generate a route handle, you need to specify return=routeHandle in a route calculation request.

To reproduce a route with a previously generated routeHandle, you need to send the handle to the /v8/routes/ endpoint, together with any other needed parameters.

curl -X GET \
    'https://router.hereapi.com/v8/routes?origin=52.550028,13.302349&destination=52.553272,13.305195&return=routeHandle&transportMode=car'
{
  "routes": [
    {
      "id": "84cfeded-3a5c-4cc2-8b74-1dce40f36710",
      "sections": [
        {
          "id": "999da998-db00-4876-80e2-24718393db74",
          "type": "vehicle",
          "departure": {
            "time": "2021-06-29T11:39:30+02:00",
            "place": {
              "type": "place",
              "location": {
                "lat": 52.5500411,
                "lng": 13.3023036
              },
              "originalLocation": {
                "lat": 52.5500279,
                "lng": 13.302349
              }
            }
          },
          "arrival": {
            "time": "2021-06-29T11:40:21+02:00",
            "place": {
              "type": "place",
              "location": {
                "lat": 52.5532843,
                "lng": 13.3051593
              },
              "originalLocation": {
                "lat": 52.553272,
                "lng": 13.305195
              }
            }
          },
          "transport": {
            "mode": "car"
          }
        }
      ],
      "routeHandle": "{routeHandle}"
    }
  ]
}

For a tutorial on how to use this route handle, see Use route handle.

results matching ""

    No results matching ""