forceLocationUpdate

open fun forceLocationUpdate(@Nullable location: Location)

Use to either force a location update or to manually control when the user location gets updated.

Parameters

location

where the location icon is placed on the map


open fun forceLocationUpdate(@Nullable locations: List<Location>, lookAheadUpdate: Boolean)

Use to either force a location update or to manually control when the user location gets updated.

This method can be used to provide the list of locations where the last one is the target location and the rest are intermediate points used as the animation path. The puck and the camera will be animated between each of the points linearly until reaching the target.

Parameters

locations

where the location icon is placed on the map

lookAheadUpdate

If set to true, the last location's timestamp has to be greater than current timestamp and should represent the time at which the animation should actually reach this position, cutting out the time interpolation delay.