List of items for mapping certain violated restrictions to specific error codes in the matrix.
This mapping can classify restrictions or blockages while still providing
the resulting times and distances in the calculated matrix.
Items are grouped into categories and evaluated collectively. Error codes are associated
with the category, rather than being tied to individual restrictions or blockages.
There are three distinct types of mappings:
- violated restrictions
- traffic-related blockages
- violations when avoiding areas or individual segments
These mappings must be maintained as separate violation mapping items, although they can belong to
the same category.
A violation mapping type can support additional parameters defining how a particular violation should be
managed. There are three settings for these parameters:
include: the violated restriction is added to a mapped
category instead of causing a hard error code 3.
exclude: the violated restriction is not added to a mapped
category and still causes an error code 3. This is the default for
height and grossWeight.
ignore: the algorithm is not taking the restriction or
property / attribute of the road into consideration.
This is the default attribute for restrictions on bridge or time-dependent
restrictions.
The parameters for each mapping type are listed in the respective schema.
Examples for mappings of different types as category 1:
- map violations with violated height and violated grossWeight:
{ "category": 1, "type": "restriction", "grossWeight": "include", "height": "include" }
- map violations with violated height and NOT violated grossWeight:
{ "category": 1, "type": "restriction", "height": "include", "grossWeight": "exclude" }
- map violations with violated height, violation or non-violation of grossWeight doesn't
matter:
{ "category": 1, "type": "restriction", "height": "include", "grossWeight": "ignore" }
- map violations with violated height and violated currentWeight:
{ "category": 1, "type": "restriction", "height": "include", "currentWeight": "include" }
- map violations with violated height and NOT violated currentWeight:
{ "category": 1, "type": "restriction", "height": "include", "currentWeight": "exclude" }
- map violations with violated height, violation or non-violation of currentWeight doesn't
matter:
{ "category": 1, "type": "restriction","height": "include", "currentWeight": "ignore" }
- map violations of avoiding an area or a segment:
{ "category": 1, "type": "avoidAreasAndSegments" }
- map violations of traffic-related blockages outside of bridges:
{ "category": 1, "type": "traffic", "bridge": "exclude" }
Unless include or exclude is stated, grossWeight or height can be
mapped regardless, if it is timeDependent or on a bridge.
Please see matrix description in the response section for more
information about error codes.
If additional types of restrictions are supported for mapping in the
future, they will default to "ignore" to ensure consistent results.
A violation mapping item belongs to either of two categories.
Mappings of type traffic or avoidAreasAndSegments are only supported for
transport modes car and truck.