@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 allowVignettes(allowVignettes: List<String>): RouteDescriptor.Builder
Specifies countries in which all toll roads and vignettes will be allowed. Specifying allowVignettes with some countries X is equivalent to specifying avoidVignettes with all countries but X. Specifying allowVignettes with an empty list is the same as avoiding all toll roads with vignettes. Note: It is an error to specify both avoidVignettes and allowVignettes. |
|
fun avoidAreas(areaCoordinates: List<BoundingBox>): RouteDescriptor.Builder
Specifies areas which will be avoided. |
|
fun avoidType(avoidTypes: List<AvoidType>): RouteDescriptor.Builder
Specifies something that the route calculation should try to avoid when determining the route. |
|
fun avoidVignettes(avoidVignettes: List<String>): RouteDescriptor.Builder
Specifies countries in which all toll roads and vignettes will be avoided. Note: It is an error to specify both avoidVignettes and allowVignettes. |
|
fun build(): RouteDescriptor
Returns new instance of RouteDescriptor. |
|
fun departAt(departAt: String): RouteDescriptor.Builder
Specifies the date and time of the departure from the origin point. |
|
fun report(reportType: ReportType): RouteDescriptor.Builder
Specifies which data should be reported for diagnosis purposes. |
|
fun routeRepresentation(routeRepresentation: RouteRepresentation): RouteDescriptor.Builder
Specifies the representation of the set of routes. |
|
fun routeType(routeType: RouteType): RouteDescriptor.Builder
Specifies the type of route requested. |
|
fun sectionType(sectionType: SectionType): RouteDescriptor.Builder
Specifies which of the section types is reported. |
|
fun traffic(traffic: Boolean): RouteDescriptor.Builder
Specifies whether the traffic information will be considered. |
|
fun travelMode(travelMode: TravelMode): RouteDescriptor.Builder
Specifies the mode of travel for the requested route. |
|
fun vehicleHeading(vehicleHeading: Int): RouteDescriptor.Builder
Specifies the directional heading of the vehicle in degrees starting at true North and continuing in a clockwise direction. |