从路线 HERE 地图中排除特定道路
Exclude specific road from route HERE maps
如果我使用 JavaScript,是否可以避开 HERE 地图中某些坐标预设的特定道路?
如果您想避开某些道路类型或某些道路链接,您的问题并不清楚。两者都可以使用 JavaScript API。查看下面的示例,了解如何构建路线参数,以避开一般的收费公路和两条特定的道路链接。
您可以在文档中找到有关 avoiding links and areas and avoiding road types 的详细信息。
var routingParameters = {
// The routing mode, strict exclusion of tollroads
'mode': 'fastest;car;tollroad:-3',
// The start point of the route:
'waypoint0': 'geo!52.5160,13.3779',
// The end point of the route:
'waypoint1': 'geo!52.5206,13.3862',
// avoid two specific road links
'avoidlinks': '+799574071,+781539155'
};
如果我使用 JavaScript,是否可以避开 HERE 地图中某些坐标预设的特定道路?
如果您想避开某些道路类型或某些道路链接,您的问题并不清楚。两者都可以使用 JavaScript API。查看下面的示例,了解如何构建路线参数,以避开一般的收费公路和两条特定的道路链接。
您可以在文档中找到有关 avoiding links and areas and avoiding road types 的详细信息。
var routingParameters = {
// The routing mode, strict exclusion of tollroads
'mode': 'fastest;car;tollroad:-3',
// The start point of the route:
'waypoint0': 'geo!52.5160,13.3779',
// The end point of the route:
'waypoint1': 'geo!52.5206,13.3862',
// avoid two specific road links
'avoidlinks': '+799574071,+781539155'
};