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 the detour time, the travel time a stop at the POI adds (default). It is negative when the route through the POI is faster than the original one, so those POIs come first. Each result carries it as detourTimeInSeconds, in AlongRoutePlaceProps.
    • detourOffset: Sort by how far along the route the detour point falls. Each result then carries it as detourOffsetInMeters, in AlongRoutePlaceProps.