TruckRouteLine
interface TruckRouteLine {
adcodes: number[];
direction: number;
distance: number;
duration: number;
legIndex: number;
points: Point[];
roadName: string;
stops: { point: Point; title: string }[];
tollGateLocation: Point;
tollGateName: string;
trafficCondition: TruckTrafficCondition[];
}
adcodes: number[];
direction: number;
distance: number;
duration: number;
legIndex: number;
points: Point[];
roadName: string;
stops: { point: Point; title: string }[];
tollGateLocation: Point;
tollGateName: string;
trafficCondition: TruckTrafficCondition[];
}
属性
路段途经的行政区划编码,服务端原样返回
路段行驶方向编码
路段距离,单位:米
路段耗时,单位:秒
所属分段序号。一个途经点分隔出一段,无途经点时恒为 0
路段的坐标点串
道路名称,无名路时为空字符串
路段的起终点,两个元素依次为起点、终点
Type Declaration
point: Point
坐标
title: string
名称,固定为"起点"或"终点"
收费站坐标。收费站信息属高级权限,无权限时为 new BMap.Point(0, 0)
收费站名称,不途经收费站时为空字符串
路段的分段路况
此类表示货车路线方案中的一个路段。不可实例化,通过 TruckRoutePlan#getLine 获得。