Routing API v7 Developer's Guide

Request a Truck Route

To calculate directions for trucks between two locations using the calculateroute service, include in the request the following:

  • your authentication credentials, apiKey or app_id and app_code if you are using the app_id/app_code authentication (see the Identity & Access Management Developer Guide)
  • the start (waypoint0) and destination (waypoint1 in case of no intermediate location) waypoints
  • fastest;truck for routing mode and indication whether to optimize the routing for traffic conditions or not
  • and truck profile parameters (see Truck Profile)

This example requests a route for a truck that weighs 30.5 tons, is 4.25 meters high and has a cargo that is harmful to water. The route uses a speed profile for heavy trucks and is not optimized for current traffic conditions. Waypoints are specified by latitude and longitude using the geo! string value.

https://route.ls.hereapi.com/routing/7.2/calculateroute.json
?apiKey={YOUR_API_KEY}
&waypoint0=geo!52.5,13.4
&waypoint1=geo!52.5,13.45
&mode=fastest;truck;traffic:disabled
&limitedWeight=30.5
&height=4.25
&shippedHazardousGoods=harmfulToWater
Note: This example uses a HERE API Key to authenticate your request. For the available authentication options, see the Identity & Access Management Developer Guide.