TomTom Maps for JavaScript
    Preparing search index...

    Type Alias SectionProps

    Base properties for all route sections.

    Sections divide a route into portions with specific characteristics or attributes. All section types extend this base with additional specialized properties.

    type SectionProps = {
        durationInSeconds?: number;
        endLengthInMeters?: number;
        endPointIndex: number;
        endTravelTimeInSeconds?: number;
        id: string;
        lengthInMeters?: number;
        startLengthInMeters?: number;
        startPointIndex: number;
        startTravelTimeInSeconds?: number;
    }
    Index

    Properties

    durationInSeconds?: number

    Duration in seconds to traverse this section.

    Calculated as: endTravelTimeInSeconds - startTravelTimeInSeconds

    endLengthInMeters?: number

    Cumulative distance in meters from route start to the end of this section.

    endPointIndex: number

    Index of the route coordinate where this section ends (inclusive).

    Zero-based index into the route's LineString coordinates array.

    endTravelTimeInSeconds?: number

    Elapsed time in seconds from route start to the end of this section.

    id: string

    Unique identifier for this section.

    Randomly generated to distinguish between sections.

    lengthInMeters?: number

    Length in meters of this section.

    Calculated as: endLengthInMeters - startLengthInMeters

    startLengthInMeters?: number

    Cumulative distance in meters from route start to the beginning of this section.

    startPointIndex: number

    Index of the route coordinate where this section begins.

    Zero-based index into the route's LineString coordinates array.

    startTravelTimeInSeconds?: number

    Elapsed time in seconds from route start to the beginning of this section.