This is the documentation of version 1.0.0-rc.3. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias SectionProps

    The base properties of all route sections.

    Sections divide a route into portions with specific characteristics or attributes. Every section type adds its own specialized properties to this base.

    type SectionProps = {
        endPointIndex: number;
        id: string;
        startPointIndex: number;
    }
    Index
    endPointIndex: number

    The zero-based index of the route coordinate where this section ends (inclusive), in the route's LineString coordinates array.

    id: string

    The unique identifier of this section, randomly generated to tell sections apart.

    startPointIndex: number

    The zero-based index of the route coordinate where this section begins, in the route's LineString coordinates array.