Package com.tomtom.sdk.location.simulation.strategy

Types

Link copied to clipboard
class InterpolationStrategy(    locations: List<GeoLocation>,     broadcastDelay: Duration = BROADCAST_DELAY,     startDelay: Duration = START_DELAY,     currentSpeedInMetersPerSecond: Double = SPEED_METERS_PER_SECOND) : SimulationStrategy

Strategy that uses interpolation to determine position. Emits first location and starts emission of other locations after startDelay. Continuously emits rest of locations with a broadcastDelay.

Link copied to clipboard
class TimestampStrategy(locations: List<GeoLocation>) : SimulationStrategy

Strategy that calculates location delay based on difference in GeoLocation.time in consecutive locations.