ControlPoint

data class ControlPoint(val distance: Distance, @FloatRange(from = 0.0, to = 22.0) val zoom: Double, @FloatRange(from = 0.0, to = 90.0) val tilt: Double = DEFAULT_TILT, @FloatRange(from = 1.0, to = 150.0) val fieldOfView: Double = DEFAULT_FIELD_OF_VIEW)

Array of control points, each of which contains the camera configuration for a given distance to the next instruction on the route. Intermediate values are obtained by linear interpolation between the corresponding points.

The array must have at least one element and must be sorted in order of decreasing distance.

Note: This part of the configuration is only valid for the CameraTrackingMode.FollowRouteDirection camera operator.

Constructors

Link copied to clipboard
constructor(distance: Distance, @FloatRange(from = 0.0, to = 22.0) zoom: Double, @FloatRange(from = 0.0, to = 90.0) tilt: Double = DEFAULT_TILT, @FloatRange(from = 1.0, to = 150.0) fieldOfView: Double = DEFAULT_FIELD_OF_VIEW)

Properties

Link copied to clipboard

Distance to the next route instruction from which the camera configuration below will be applied. Its value must be greater than zero.

Link copied to clipboard

Optional field of view (FOV), in degrees, to be applied. This must be in the range from 1.0 to 150.0 (inclusive). If no value is provided, then the default value of 45.0 is used. The FoV used may be different from the entered value, depending on the camera scale:

Link copied to clipboard

Optional tilt to be applied to the camera when the corresponding distance is reached. It must range from 0 to 90. If tilt is not provided, a tilt value of 0 is used.

Link copied to clipboard

Zoom to be applied. Its value must be greater than zero.