Get detailed section notices

This request specifies waypoints and parameters for a route that does not exist. The result of the calculation is a response that specifies notices for certain sections of the route.

curl -X GET \
  'https://router.hereapi.com/v8/routes?origin=50.892387,20.655124&destination=50.894911,20.64899&transportMode=truck&truck[grossWeight]=4000&departureTime=2020-10-28T00:01:00+01:00&apikey={YOUR_API_KEY}'
{
  "routes": [
    {
      "id": "4ff6518f-ebf4-4c69-aa6f-ed1a67c0daec",
      "sections": [
        {
          "id": "f9fd7dca-e7ca-4c95-9033-fb5b395a5452",
          "type": "vehicle",
          "departure": {
            "time": "2020-10-28T00:01:00+01:00",
            "place": {
              "type": "place",
              "location": {
                "lat": 50.8924,
                "lng": 20.655124
              },
              "originalLocation": {
                "lat": 50.892387,
                "lng": 20.6551239
              }
            }
          },
          "arrival": {
            "time": "2020-10-28T00:04:32+01:00",
            "place": {
              "type": "place",
              "location": {
                "lat": 50.8948931,
                "lng": 20.6489882
              },
              "originalLocation": {
                "lat": 50.8949109,
                "lng": 20.64899
              }
            }
          },
          "notices": [
            {
              "title": "Violated vehicle restriction.",
              "code": "violatedVehicleRestriction",
              "severity": "critical",
              "details": [
                {
                  "type": "restriction",
                  "cause": "Route violates vehicle restriction",
                  "maxGrossWeight": 3500,
                  "timeDependent": true
                }
              ]
            }
          ],
          "transport": {
            "mode": "truck"
          }
        }
      ]
    }
  ]
}

results matching ""

    No results matching ""