Routing API v7 Developer's Guide

Request a Truck Route Avoiding Restrictions

To calculate directions that take into account truck restrictions, use the calculateroute service specifying the start (waypoint0), the destination (waypoint1), the truck fastest mode and the truck profile parameters (see Truck Profile).

Note that you also have to specify an apiKey or app_id and app_code if you are using the app_id/app_code authentication (see Acquiring Credentials) and whether to take traffic into account.

The following example queries a route for a truck that is five meters high. The optimal route passes through a link forbidden for vehicles higher than four meters. The route for the given truck does not use this link.
Note: This example uses a HERE API Key to authenticate your request. For information on other possible options, see Authentication Guide. For examples of how to use the other authentication options with the Routing API v7, see Authentication Examples.
Figure 1. Example of avoided restricted link.

If the value of the height parameter is equal to or less than four meters or not specified, then the route uses the link with the height restriction.