SimulationOptions

  • SimulationOptions is a class used to configure settings for route simulations in the Navigation SDK.

  • It allows developers to control the simulation speed with the speedMultiplier property, which defaults to 1x.

  • A public constructor SimulationOptions() is available to create an instance of the class.

  • The getSpeedMultiplier() method returns the current speed multiplier being used.

public class SimulationOptions extends Object

Options to be used inside the Simulator.

Public Constructor Summary

Public Method Summary

float
SimulationOptions
speedMultiplier(float speedMultiplier)
Configures the speed multiplier to use when simulating travel along a route.

Inherited Method Summary

Public Constructors

public SimulationOptions ()

Public Methods

public float getSpeedMultiplier ()

public SimulationOptions speedMultiplier (float speedMultiplier)

Configures the speed multiplier to use when simulating travel along a route.

The default is 1x speed.

Parameters
speedMultiplier
Returns
  • the object for which the method was called, with the updated speed multiplier