@Beta(2020, 12) 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. |
|
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. |
|
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. |