@PublicPreview("2021.06") class Builder
Builder used to create an instance of RouteDescriptor. Once constructed, the user cannot change the field values.
Builder()
Builder used to create an instance of RouteDescriptor. Once constructed, the user cannot change the field values. |
fun avoidType(avoidType: List<AvoidType>): RouteDescriptor.Builder
Specifies something that the route calculation should try to avoid when determining the route. |
|
fun build(): RouteDescriptor
Returns a new instance of RouteDescriptor. |
|
fun considerTraffic(considerTraffic: Boolean): RouteDescriptor.Builder
Specifies whether the traffic information will be considered. The default value is true. |
|
fun departAt(departAt: Date): RouteDescriptor.Builder
Specifies the departure time. |
|
fun hilliness(hilliness: Hilliness): RouteDescriptor.Builder
Specifies the hilliness type for route calculation. |
|
fun routeType(routeType: RouteType): RouteDescriptor.Builder
Specifies the type of route requested. |
|
fun travelMode(travelMode: TravelMode): RouteDescriptor.Builder
Specifies the mode of travel for the requested route. |
|
fun windingness(windingness: Windingness): RouteDescriptor.Builder
Specifies the windingness type for route calculation. |