Recently, I've encountered an issue with the HERE maps JS API routing feature. Specifically, I'm attempting to add restrictions based on factors like height or weight. Despite my efforts, it seems to be disregarding these restrictions. Additionally, I am utilizing fleet telematics tiles from HERE which provide relevant information in this context.
https://i.sstatic.net/ajmtY.png
The options I have configured are:
let routingParameters = {
'routingMode': 'short',
'transportMode': 'truck',
'origin': locationPoints.A.lat+','+locationPoints.A.lon,
'destination': locationPoints.B.lat+','+locationPoints.B.lon,
'truck': {
'height': 600,
'grossWeight': 22000
},
'return': 'polyline,summary'
};
The routing itself works fine, so I may be overlooking something. Is there a way to prevent these discrepancies?
Logically, it would not make sense for a truck with a height of 6m to pass through a tunnel only 4.5 meters in height. Therefore, such routes should be automatically excluded even if they seem feasible from a pure routing perspective.