sdk-maps / com.tomtom.online.sdk.map / ChevronPosition / Builder

Builder

open class Builder

Builder for ChevronPosition

Constructors

<init>

Builder(coordinates: LatLng, timeInMillis: Long)

Builder constructor which requires valid LatLng coordinates and a time in milliseconds.

Builder(location: Location)

Builder constructor which accepts Location and uses its position, bearing, speed, and time in milliseconds to fill the builder parameters.

Functions

accuracy

open fun accuracy(accuracy: Double): ChevronPosition.Builder!

Set if accuracy in meters is available.

bearing

open fun bearing(bearing: Double): ChevronPosition.Builder!

Set if bearing information is available.

build

open fun build(): ChevronPosition!

Returns a new instance of a ChevronPosition.

speed

open fun speed(speed: Double): ChevronPosition.Builder!

Set if current speed in meters per second is available.