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

    Type Alias ChargingStopsStrategy

    ChargingStopsStrategy: typeof chargingStopsStrategies[number]

    How the routing service should plan charging stops on an electric route.

    • automaticFastest: the service picks charging stops for the fastest journey. The default.
    • manualFastest: the service plans no charging stops of its own; only stops you pass as waypoints are charged at.
    • automaticFastestWithFallbackToManual: automatic, falling back to manual when no chargeable route exists.

    Requires vehicle.preferences.chargingPreferences to be set as well: the endpoint also needs a minimum charge at the destination, which only the preferences supply.