@PublicPreview("2021.06") class Builder
A builder class used to create EvRouteSpecification for the Long Distance EV Routing service.
origin
- Origin location of a route.
destination
- Destination location of a route.
electricVehicleDescriptor
- Electric vehicle descriptor of a route.
Builder(origin: LatLng, destination: LatLng, electricVehicleDescriptor: ElectricVehicleDescriptor, chargingDescriptor: ChargingDescriptor)
A builder class used to create EvRouteSpecification for the Long Distance EV Routing service. |
fun build(): EvRouteSpecification
Creates new instance of EvRouteSpecification. |
|
fun routeDescriptor(routeDescriptor: RouteDescriptor): EvRouteSpecification.Builder
Specifies the route descriptor for the requested route. |