RouteNoteType
Route notes are used to store additional information about the route. These notes can either be related to the calculation itself (like violated routing options) or to the characteristics of the route (like entering a toll road, passing a border, etc.).

RouteNoteType
defines the following elements:
Element | Description |
---|---|
Type | RouteNoteTypeType Type of the note. Please refer to the enumeration type |
Code | RouteNoteCodeType A code that uniquely identifies the note. This code can be used to decide how to display the note (such as with a warning icon). Please refer to the enumeration type |
Text | xs:string A short text describing the note. Please note that this attribute is not subject to internationalization and should therefore not be used in user displays. |
AdditionalData | KeyValuePairType Container for additional data to be stored along with the note. |
CountryChangeDetails | CountryChangeDetailsType Details of the country change. Provided only in case of country change notes (notes with |
ZoneIds | xs:list of xs:unsignedLong Zones where a zone restriction is violated or is potentially violated. Provided only in case of zone restriction notes (notes with |
Zone Restriction Notes
The zone restriction notes are related to the Restriction
elements of the RoutingZoneType. The violated zone restrictions produce route and maneuver notes in the response. The potentially violated zone restrictions produce only maneuver notes.
Note
elements in the response may need to be explicitly enabled through routeAttributes
and maneuverAttributes
parameters (see RouteRepresentationOptionsType for details). <Route>
...
<Note>
<Type>violation</Type>
<Code>routingOptionViolated</Code>
<Text>zoneRestriction</Text>
</Note>
</Route>
<Maneuver ... xsi:type="rtc:PrivateTransportManeuverType">
...
<Note>
<Type>violation</Type>
<Code>zoneRestriction</Code>
<ZoneIds>zoneId,...</ZoneIds> <!-- zones where zone restrictions are violated -->
</Note>
</Maneuver>
<Maneuver ... xsi:type="rtc:PrivateTransportManeuverType">
...
<Note>
<Type>restriction</Type>
<Code>zoneRestriction</Code>
<ZoneIds>zoneId,...</ZoneIds> <!-- zones where zone restrictions are potentially violated -->
</Note>
</Maneuver>
Difficult Turn Notes
The difficult turn notes may be produced when a computed route violates the option &avoidTurns=difficult
. For detail on the request parameter &avoidTurns
refer to the resource Calculate Route or Calculate Matrix. See also TurnType.
&avoidTurns=difficult
: <Route>
...
<Note>
<Type>violation</Type>
<Code>routingOptionViolated</Code>
<Text>difficultTurn</Text>
</Note>
</Route>
&avoidTurns=difficult
: <Maneuver ... xsi:type="rtc:PrivateTransportManeuverType">
...
<Note>
<Type>warning</Type>
<Code>difficultTurn</Code>
</Note>
</Maneuver>