表示一个换乘路段

interface MassTransitStep {
    distance: number;
    duration: number;
    name: string;
    wayPoints?: LatLng[];
    trafficConditions?: TrafficCondition[];
    startLocation?: LatLng;
    endLocation?: LatLng;
    trainInfo?: null | TrainInfo;
    planeInfo?: null | PlaneInfo;
    coachInfo?: null | CoachInfo;
    busInfo?: null | BusInfo;
    vehicleType?: StepVehicleInfoType;
    instructions?: string;
    pathString?: string;
}

Hierarchy (view full)

Properties

distance: number

路段距离

duration: number

路段耗时

name: string

路段道路名称

wayPoints?: LatLng[]

路段所经过的地理坐标集合

trafficConditions?: TrafficCondition[]

交通情况

startLocation?: LatLng

本路段起点

endLocation?: LatLng

本路段终点

trainInfo?: null | TrainInfo

火车具体信息

planeInfo?: null | PlaneInfo

飞机具体信息

coachInfo?: null | CoachInfo

大巴具体信息

busInfo?: null | BusInfo

公交具体信息

vehicleType?: StepVehicleInfoType

本路段中交通方式的类型:1火车,2飞机,3公交,4驾车,5步行,6大巴

instructions?: string

该路段换乘说明

pathString?: string

path点坐标,未解析,出于性能考虑,缓存path坐标点,当需要用到时再解析