HERE Android SDK Developer's Guide

VenueSimulatedLocationSource

The class VenueSimulatedLocationSource is a member of com.here.android.mpa.venues3d .

Class Summary

public class VenueSimulatedLocationSource

extends com.here.android.mpa.common.LocationDataSource, java.lang.Object

Represents a position data source which is able to simulate indoor positioning based on a provided VenueRoute object.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in VenueSimulatedLocationSource
Nested Classes

public static final enumeration VenueSimulatedLocationSource.SimulationState

The possible states of VenueSimulatedLocationSource .

Constructor Summary

Table 2. Constructors in VenueSimulatedLocationSource
Constructors

VenueSimulatedLocationSource (VenueRoute routeSection, double speed, boolean distortionEnabled)

Constructs a simulated location source object.

VenueSimulatedLocationSource (LinkingRoute routeSection, double speed, boolean distortionEnabled)

Constructs a simulated location source object.

Method Summary

Table 3. Methods in VenueSimulatedLocationSource
Methods

public int getGpsStatus ()

public int getIndoorStatus ()

public Location getLastKnownLocation ()

public int getNetworkStatus ()

public SimulationState getSimulationState ()

Gets the current state of the simulation related to the tracked route.

public double getUpdatesInterval ()

public boolean isPaused ()

Returns true , if current simulation is paused, false otherwise.

public void pause (boolean value)

When set to true , the current simulation will be paused (if any).

public void setUpdatesInterval (double seconds)

Changes the interval between two consecutive simulated indoor position changes.

public boolean start (LocationMethod method)

public void stop ()

Class Details

Represents a position data source which is able to simulate indoor positioning based on a provided VenueRoute object.

IMPORTANT: Venue Simulated Location Source is a Beta feature. The related classes are subject to change without notice.

Constructor Details

VenueSimulatedLocationSource (VenueRoute routeSection, double speed, boolean distortionEnabled)

Constructs a simulated location source object.

Parameters:

  • routeSection

    The venue route section for which to simulate the location.

  • speed

    The speed at which the simulated location changes in meters per second.

  • distortionEnabled

    If enabled, each generated position will be distorted with some random factor

VenueSimulatedLocationSource (LinkingRoute routeSection, double speed, boolean distortionEnabled)

Constructs a simulated location source object.

Parameters:

  • routeSection

    The linking route section for which to simulate the location.

  • speed

    The speed at which the simulated location changes in meters per second.

  • distortionEnabled

    If enabled, each generated position will be distorted with some random factor

Method Details

public int getGpsStatus ()

public int getIndoorStatus ()

public Location getLastKnownLocation ()

public int getNetworkStatus ()

public SimulationState getSimulationState ()

Gets the current state of the simulation related to the tracked route.

public double getUpdatesInterval ()

Returns:

Interval in seconds between two consecutive updates of simulated indoor positions.

See also:

setUpdatesInterval(double)

public boolean isPaused ()

Returns true , if current simulation is paused, false otherwise.

Returns:

true, if current simulation is paused, false otherwise.

public void pause (boolean value)

When set to true , the current simulation will be paused (if any). When set to false , the current simulation will resume if previously paused. This has no effect if there is no simulation currently in progress.

Parameters:

  • value

    When set to true, the current simulation will be paused (if any).

public void setUpdatesInterval (double seconds)

Changes the interval between two consecutive simulated indoor position changes. This affects the smoothness of simulation.

Parameters:

  • seconds

    Time in seconds

public boolean start (LocationMethod method)

Parameters:

  • method

public void stop ()