open class RouteBuilder
Builder class used to construct route object that can be added to the map.
RouteBuilder(coordinates: MutableList<LatLng!>)
Default constructor to create route. List of coordinates that represents route on the map is required to start. |
open fun build(): RouteImpl
Used to construct route object. |
|
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. |
|
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. |
|
open fun style(routeStyle: RouteStyle!): RouteBuilder
Determines the style of the route on the map which includes options like: fillColor, outlineColor, width |
|
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. |