sdk-routing / com.tomtom.online.sdk.routing.ev / EvRouteSpecification / Builder

Builder

@Beta(2020, 12) class Builder

A builder class used to create EvRouteSpecification for the Long Distance EV Routing service.

Parameters

origin - Origin location of a route.

destination - Destination location of a route.

electricVehicleDescriptor - Electric vehicle descriptor of a route.

Constructors

<init>

Builder(origin: LatLng, destination: LatLng, electricVehicleDescriptor: ElectricVehicleDescriptor, chargingDescriptor: ChargingDescriptor)

A builder class used to create EvRouteSpecification for the Long Distance EV Routing service.

Functions

build

fun build(): EvRouteSpecification

Creates new instance of EvRouteSpecification.

routeDescriptor

fun routeDescriptor(routeDescriptor: RouteDescriptor): EvRouteSpecification.Builder

Specifies the route descriptor for the requested route.