Violate avoided areas

The following requests fails to avoid the specified area, because the destination is inside the area to be avoided.

curl -X GET \
  'https://router.hereapi.com/v8/routes?origin=52.514647,13.387549&destination=52.516547,13.379095&transportMode=car&avoid[areas]=bbox:13.382279,52.51441,13.376397,52.518284'
avoid areas violated
Figure 1. avoid areas violated

The response specifies a notice with the code violatedBlockedRoad:

{
  "routes": [
    {
      "id": "a394029a-06c3-4864-b46c-8296acfcf6a1",
      "sections": [
        {
          "id": "7237d4d1-131d-4cf5-ba2f-b95a16e571a2",
          "type": "vehicle",
          "departure": {
            "time": "2021-11-09T17:58:56+01:00",
            "place": {
              "type": "place",
              "location": {
                "lat": 52.5146499,
                "lng": 13.3875485
              },
              "originalLocation": {
                "lat": 52.5146469,
                "lng": 13.3875489
              }
            }
          },
          "arrival": {
            "time": "2021-11-09T18:02:24+01:00",
            "place": {
              "type": "place",
              "location": {
                "lat": 52.5165322,
                "lng": 13.3790967
              },
              "originalLocation": {
                "lat": 52.5165469,
                "lng": 13.3790949
              }
            }
          },
          "notices": [
            {
              "title": "Violated avoid areas.",
              "code": "violatedBlockedRoad",
              "severity": "critical"
            }
          ],
          "transport": {
            "mode": "car"
          }
        }
      ]
    }
  ]
}

results matching ""

    No results matching ""