Interface MassTransitRoutePlanOption

换乘路线规划参数

interface MassTransitRoutePlanOption {
    from: PlanNode;
    to: PlanNode;
    tacticsInCity?: TacticsInCity;
    tacticsIntercity?: TacticsIntercity;
    transTypeIntercity?: TransTypeIntercity;
    pageSize?: number;
    pageIndex?: number;
}

Properties

from: PlanNode

起点

终点

tacticsInCity?: TacticsInCity

设置市内公交换乘策略

tacticsIntercity?: TacticsIntercity

设置跨城公交换乘策略

transTypeIntercity?: TransTypeIntercity

设置跨城交通方式策略

pageSize?: number

设置每页返回几条路线,[1,10]

pageIndex?: number

设置返回第几页 从0开始