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

    Type Alias CompareRoutesOptions

    Which sections to weigh when comparing two routes.

    type CompareRoutesOptions = {
        types?: readonly SectionType[];
    }
    Index
    types?: readonly SectionType[]

    The section types to weigh. Defaults to every type calculateRoute can return, curve and curvyStretch included when the routes carry them, leaving out leg and distinct.