Class OutdoorLocationOptions

java.lang.Object
es.situm.sdk.location.OutdoorLocationOptions
All Implemented Interfaces:
android.os.Parcelable

public class OutdoorLocationOptions extends Object implements android.os.Parcelable
When you build the LocationRequest, this data object configures the Global Mode (see LocationRequest for details) options: Outdoor positioning and Building Detector parameters.

Outdoor Positioning in Situm SDK is mainly provided using the GPS signals (and other location providers made available by Android). Configuring the Outdoor Positioning options lets you, in many ways, configure how Situm SDK reads and accesses to GPS signals. Relevant builder methods are: enableOutdoorPositions, computeInterval, updateInterval, minimumOutdoorLocationAccuracy.

Building Detector is a module that allows to configure how Situm SDK will detect the building where the user is (building detector strategy). Building detectors can set up by passing the OutdoorLocationOptions.BuildingDetector data object to the Builder.buildingDetector method. Other relevant builder methods are centerPositionInBuildingDuringTransition, scansBasedDetectorAlwaysOn and useGeofencesInBuildingSelector.

This object will be passed to the LocationRequest.Builder.outdoorLocationOptions method when building the LocationRequest. After that, you may start positioning as always by calling the LocationManager.requestLocationUpdates.

Requirements. ACCESS_FINE_LOCATION permission is required when using Situm SDK in Global Mode. See LocationManager for details.