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

    Type Alias AlongRouteSortBy

    AlongRouteSortBy: "detourTime" | "detourOffset"

    Result sorting order for along-route search.

    Controls how the returned POIs are ordered relative to the route.

    • detourTime: Sort by additional travel time required to visit the POI (default)
    • detourOffset: Sort by how far along the route the detour point falls