路线数据结构的基础接口,表示一条路线,路线可能包括:路线规划中的换乘/驾车/步行路线

此接口为路线数据结构的基础接口,一般关注其子接口即可,无需直接使用基础接口

interface RouteLine<T> {
    starting: null | RouteNode;
    terminal: null | RouteNode;
    title: string;
    steps: T[];
    distance: number;
    duration: number;
}

Type Parameters

Hierarchy (view full)

Properties

starting: null | RouteNode
terminal: null | RouteNode
title: string
steps: T[]
distance: number
duration: number