Show a truck routes with the truck related road restrictions highlighted on the map
This example calculates and displays 3 different truck routes with the same start and end positions,
but various truck attributes.
The start position is in Manhattan and the end position on the opposite bank in Newport.
truck[axleCount]
parameter of the Routing API).truck[shippedHazardousGoods]
parameter of the Routing API).More information about above mentioned routing request parameters can be found here.
The truck restrictions layer is set as a base map.
Access to the routing service is obtained from the H.service.Platform
by calling
getRoutingService(null, 8)
. The calculateRoute()
method is used to calculate the fastest
truck route by passing in the relevant parameters as defined in
Routing API.
The styling and display of the response is under the control of the developer.