Light commercial vehicle routing
Light commercial vehicle routing enables commercial speed limits, tolls, and delivery for small commercial vehicles which should not be treated as trucks. To calculate a route for a light commercial vehicle set transportMode=car&vehicle[commercial]=true. Additionally, different vehicle properties such as vehicle[grossWeight], vehicle[height], vehicle[trailerCount], etc. could be provided to account for more accurate evaluation of restrictions and regulations, for more information see Vehicle properties.
Commercial speed limits
Request a route for a light commercial vehicle with commercial speed limits in max speed span:
curl -gX GET 'https://router.hereapi.com/v8/routes?'\
'origin=49.833247,11.501428&'\
'destination=49.857498,11.518307&'\
'transportMode=car&'\
'return=polyline,summary&'\
'spans=maxSpeed&'\
'vehicle[commercial]=true&'\
'vehicle[grossWeight]=4000&'\
'apiKey=YOUR_API_KEY'"sections": [
{
...,
"spans": [
{
"offset": 0,
"maxSpeed": 22.2222233
}
]
}
]Request a route for a car with max speed span:
curl -gX GET 'https://router.hereapi.com/v8/routes?'\
'origin=49.833247,11.501428&'\
'destination=49.857498,11.518307&'\
'transportMode=car&'\
'return=polyline,summary&'\
'spans=maxSpeed&'\
'vehicle[grossWeight]=4000&'\
'apiKey=YOUR_API_KEY'"sections": [
{
...,
"spans": [
{
"offset": 0,
"maxSpeed": "unlimited"
}
]
}
]Note how the returned maxSpeed on an Autobahn in Germany for a 4000 kg light commercial vehicle (80 km/h or 22.22 m/s) is different from a 4000 kg car (unlimited).
Note
Speed limits based on trailer count are currently not supported for light commercial vehicles.
Commercial tolls
Request a route for a light commercial vehicle with commercial tolls:
curl -gX GET 'https://router.hereapi.com/v8/routes?'\
'origin=-27.551419,152.141145&'\
'destination=-27.512516,151.925487&'\
'via=-27.514955,152.022433!passThrough=true&'\
'transportMode=car&'\
'return=polyline,travelSummary,tolls&'\
'vehicle[commercial]=true&'\
'departureTime=any&'\
'currency=AUD&'\
'tolls[summaries]=total&'\
'apiKey=YOUR_API_KEY'"sections": [
{
...,
"travelSummary": {
...,
"tolls": {
"total": {
"type": "value",
"currency": "AUD",
"value": 7.14
}
}
}
}
]Request a route for a car with tolls:
curl -gX GET 'https://router.hereapi.com/v8/routes?'\
'origin=-27.551419,152.141145&'\
'destination=-27.512516,151.925487&'\
'via=-27.514955,152.022433!passThrough=true&'\
'transportMode=car&'\
'return=polyline,travelSummary,tolls&'\
'departureTime=any&'\
'currency=AUD&'\
'tolls[summaries]=total&'\
'apiKey=YOUR_API_KEY'"sections": [
{
...,
"travelSummary": {
...,
"tolls": {
"total": {
"type": "value",
"currency": "AUD",
"value": 2.88
}
}
}
}
]Note how the returned toll on Toowoomba Bypass in Australia for a light commercial vehicle (7.14 AUD) is different from a car (2.88 AUD).
Note
Tolls may vary based on vehicle properties such as weight, axle-count, etc.
Delivery
Light commercial vehicle routing allows a vehicle to enter and deliver in truck only delivery areas where through traffic is not allowed.
Request a route for a light commercial vehicle with destination in a truck only delivery area:
curl -gX GET 'https://router.hereapi.com/v8/routes?'\
'origin=47.36128103,8.54788321&'\
'destination=47.37207726,8.54276363&'\
'transportMode=car&'\
'return=polyline,summary,tolls&'\
'vehicle[commercial]=true&'\
'apiKey=YOUR_API_KEY'Note below how a light commercial vehicle is able to reach the destination but the car stops at the boundary of the delivery area.
Note
When within these truck only delivery areas certain truck restrictions also become applicable to light commercial vehicles as described in the limitations.
Limitations
- Transport access restrictions (weight, height, width, length, axle, trailer, hazmat, etc.) applicable for trucks are also applicable for light commercial vehicles.
- Time restrictions applicable for trucks are also applicable for light commercial vehicles.
- Congestion zones applicable for trucks are also applicable for light commercial vehicles.
- Restricted driving maneuvers applicable for trucks are currently not applicable for light commercial vehicles.
Updated 23 days ago