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 RouteComparison

    How a route differs from a reference route: the stretches each drives alone, and their sections.

    type RouteComparison = {
        adds: SectionsWithin;
        avoids: SectionsWithin;
        distinct: DistinctSectionProps[];
        referenceDistinct: DistinctSectionProps[];
    }
    Index

    The route's sections on the stretches only it drives: what it takes on.

    The reference's sections on the stretches only it drives: what the route stays clear of.

    The stretches only the route drives, of the two.

    referenceDistinct: DistinctSectionProps[]

    The stretches only the reference drives, of the two.