Administrative-area-wide restrictions
Administrative-area-wide restrictions are derived from traffic regulations that apply to whole administrative areas, such as countries or states. Such restrictions include weight and height restrictions or combinations thereof, can additionally have applicable axle counts, and can be time-dependent. Violations of such restrictions are reported as section notices with an info severity level.
curl -gX GET 'https://router.hereapi.com/v8/routes?'\
'origin=36.7102127,-101.4468529&'\
'destination=36.6748559,-101.4534272&'\
'return=polyline&'\
'transportMode=truck&'\
'vehicle[grossWeight]=40000&'\
'apiKey=YOUR_API_KEY'
{
"routes": [
{
"id": "fee86803-4650-4b80-b4d4-786e00fd1a53",
"sections": [
{
"id": "cd4a1099-6a29-452a-992b-5735fb80436e",
"type": "vehicle",
...,
"polyline": "...",
"notices": [
{
"title": "Violated admin-wide vehicle restriction.",
"code": "violatedAdminWideVehicleRestriction",
"severity": "info",
"details": [
{
"type": "adminWideRestriction",
"cause": "Route violates admin-wide vehicle restriction",
"country": "USA",
"state": "OK",
"maxGrossWeight": 36286,
"maxWeight": {
"value": 36286,
"type": "unknown"
}
}
]
}
],
"transport": {
"mode": "truck"
}
}
]
}
]
}Updated 5 days ago
Did this page help you?