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 LegCostModel

    LegCostModel: Pick<CostModel, "routeType" | "avoid">

    Cost model overrides that apply to a single leg of a route.

    Only the route type and the avoid list of CostModel can vary per leg. Traffic, avoid areas and departure time are route-wide.