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

Builder

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)

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.

vehicleDescriptor

fun vehicleDescriptor(vehicleDescriptor: VehicleDescriptor): EvRouteSpecification.Builder

Specifies the vehicle descriptor for the requested route.