Routes 为什么不';德国对星期日HGV禁令的违反
根据许多消息来源,车辆总重超过7.5吨的卡车禁止在周日和公共假日从午夜到22:00在德国公路网上行驶 当我向路由API(v8)提交从周日02:00开始在两个样本地点(慕尼黑和纽伦堡)之间旅行的请求时,响应提供了标准旅行摘要,但没有注意到违反了任何禁令 这与英国违反基于时间的禁令的示例旅行相反,在英国,Routes 为什么不';德国对星期日HGV禁令的违反,routes,here-api,Routes,Here Api,根据许多消息来源,车辆总重超过7.5吨的卡车禁止在周日和公共假日从午夜到22:00在德国公路网上行驶 当我向路由API(v8)提交从周日02:00开始在两个样本地点(慕尼黑和纽伦堡)之间旅行的请求时,响应提供了标准旅行摘要,但没有注意到违反了任何禁令 这与英国违反基于时间的禁令的示例旅行相反,在英国,会通知关键细节 为什么德国请求中缺少类似的通知键 德国 请求 英国/伦敦卡车控制方案 请求 只有当路由API在没有冲突的情况下无法找到任何其他路由选项时,才会出现通知。在其他情况下,如果它能够找到一
会通知
关键细节
为什么德国请求中缺少类似的通知
键
德国
请求
英国/伦敦卡车控制方案
请求
只有当路由API在没有冲突的情况下无法找到任何其他路由选项时,才会出现通知。在其他情况下,如果它能够找到一条没有限制的替代路线,那么它将始终为您提供该路线。此外,请注意,卡车违规主要只适用于某些高速公路。因此,如果提供的路线未通过任何有限制的公路,则也不会提供通知 路段通告 这些通知出现在路线内的区段级别,通常表明所生成路线存在一些问题。大多数路线区段通知表明,计算出的路线无法避免,因此违反了某些特定限制(例如,违反了车辆限制),或违反了要求的选项(例如,违反了避免通行道路)。 属性
https://router.hereapi.com/v8/routes?&apikey=<API_KEY>&transportmode=truck&departuretime=2021-04-25t02:00:00z&return=travelSummary,passthrough&origin=48.16549,11.46595&destination=49.45395,11.06725&vehicle=truck&truck[grossweight]=38000
{
"routes": [
{
"id": "6dbdd89e-ed04-4a56-89aa-62e62dfa61cb",
"sections": [
{
"id": "a0d6ca33-5c1a-48dd-8a01-6423eccc39b5",
"type": "vehicle",
"departure": {
"time": "2021-04-25T04:00:00+02:00",
"place": {
"type": "place",
"location": {
"lat": 48.16552,
"lng": 11.46595
},
"originalLocation": {
"lat": 48.1654899,
"lng": 11.4659499
}
}
},
"arrival": {
"time": "2021-04-25T06:20:42+02:00",
"place": {
"type": "place",
"location": {
"lat": 49.4534,
"lng": 11.06675
},
"originalLocation": {
"lat": 49.45395,
"lng": 11.06725
}
}
},
"travelSummary": {
"duration": 8442,
"length": 174153,
"baseDuration": 8442
},
"transport": {
"mode": "truck"
}
}
]
}
]
}
https://router.hereapi.com/v8/routes?&apikey=<API_KEY>&transportmode=truck&departuretime=2021-04-25t02:00:00z&return=travelSummary,passthrough&origin=51.49591,-0.34113&destination=51.50755,-0.12777&vehicle=truck&truck[grossweight]=38000
{
"routes": [
{
"id": "aac34e21-3a43-4b57-b985-f280c6468e73",
"sections": [
{
"id": "2824d260-57f4-4d77-91b9-170865f70dc3",
"type": "vehicle",
"departure": {
"time": "2021-04-25T03:00:00+01:00",
"place": {
"type": "place",
"location": {
"lat": 51.4958792,
"lng": -0.3413206
},
"originalLocation": {
"lat": 51.49591,
"lng": -0.34113
}
}
},
"arrival": {
"time": "2021-04-25T04:18:51+01:00",
"place": {
"type": "place",
"location": {
"lat": 51.50755,
"lng": -0.12785
},
"originalLocation": {
"lat": 51.5075499,
"lng": -0.12777
}
}
},
"travelSummary": {
"duration": 4731,
"length": 29791,
"baseDuration": 4731
},
"notices": [
{
"title": "Violated vehicle restriction.",
"code": "violatedVehicleRestriction",
"severity": "critical",
"details": [
{
"type": "restriction",
"cause": "Route violates vehicle restriction",
"maxGrossWeight": 18000,
"timeDependent": true
}
]
}
],
"transport": {
"mode": "truck"
}
}
]
}
]
}