sdk-maps / com.tomtom.online.sdk.map / RouteBuilder

RouteBuilder

open class RouteBuilder

Builder class used to construct route object that can be added to the map.

Constructors

<init>

RouteBuilder(coordinates: MutableList<LatLng!>)

Default constructor to create route. List of coordinates that represents route on the map is required to start.

Functions

build

open fun build(): RouteImpl

Used to construct route object.

endIcon

open fun endIcon(endIcon: Icon!): RouteBuilder

Icon added to the end point of the route. No icon will be shown when it is not provided.

startIcon

open fun startIcon(startIcon: Icon!): RouteBuilder

Icon added to the start point of the route. No icon will be shown when it is not provided.

style

open fun style(routeStyle: RouteStyle!): RouteBuilder

Determines the style of the route on the map which includes options like: fillColor, outlineColor, width

tag

open fun tag(tag: Serializable!): RouteBuilder

TAG is known android pattern to keep additional information. If you want to keep some data associated with the route, this field can be used in such case.