Violate the avoid option

This request violates the avoid option:

curl -X GET \
  'https://router.hereapi.com/v8/routes?destination=53.863531,14.284817&origin=53.859552,14.271760&transportMode=car&avoid[features]=ferry'

The response specifies a notice with the code violatedAvoidFerry:

{
  "routes": [
    {
      "id": "7616d85b-da9a-46bd-9b9f-e8dafe34213a",
      "sections": [
        {
          "arrival": {
            "place": {
              "location": {
                "lat": 53.86060992255807,
                "lng": 14.277769988402725
              },
              "type": "place"
            },
            "time": "2019-12-09T14:31:28+01:00"
          },
          "departure": {
            "place": {
              "location": {
                "lat": 53.859547432512048,
                "lng": 14.271750692278147
              },
              "type": "place"
            },
            "time": "2019-12-09T14:08:34+01:00"
          },
          "id": "217649dd-5584-4162-b235-f625f5b25185",
          "transport": {
            "mode": "car"
          },
          "type": "vehicle"
        },
        {
          "arrival": {
            "place": {
              "location": {
                "lat": 53.862169962376359,
                "lng": 14.28596992045641
              },
              "type": "place"
            },
            "time": "2019-12-09T14:42:28+01:00"
          },
          "departure": {
            "place": {
              "location": {
                "lat": 53.86060992255807,
                "lng": 14.277769988402725
              },
              "type": "place"
            },
            "time": "2019-12-09T14:31:28+01:00"
          },
          "id": "e955e9cf-7783-4c77-a9ee-8ba1b409b612",
          "notices": [
            {
              "code": "violatedAvoidFerry",
              "title": "Violated avoid ferry"
            }
          ],
          "transport": {
            "mode": "ferry"
          },
          "type": "vehicle"
        },
        {
          "arrival": {
            "place": {
              "location": {
                "lat": 53.86353185400367,
                "lng": 14.284817911684513
              },
              "type": "place"
            },
            "time": "2019-12-09T14:44:22+01:00"
          },
          "departure": {
            "place": {
              "location": {
                "lat": 53.862169962376359,
                "lng": 14.28596992045641
              },
              "type": "place"
            },
            "time": "2019-12-09T14:42:28+01:00"
          },
          "id": "3a8fe2c0-269a-45f1-a5bb-aab060d78c7c",
          "transport": {
            "mode": "car"
          },
          "type": "vehicle"
        }
      ]
    }
  ]
}

results matching ""

    No results matching ""