-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class CalculatedLocation extends Location implements Parcelable
Location model for locations calculated via positioning In addition to fields in Location, includes type, state, orientation, timestamp and some accuracy metrics
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
CalculatedLocation.HeadingAccuracyClass
Enumeration for heading accuracy classes Used to differentiate convergence status
public enum
CalculatedLocation.LocationType
Enumeration for location types Used to differentiate the context of the location
public enum
CalculatedLocation.LocationState
Enumeration for location states Used as hints for the UI to differentiate between location availability states
public class
CalculatedLocation.Companion
-
Field Summary
Fields Modifier and Type Field Description private final CalculatedLocation.LocationType
type
private final CalculatedLocation.LocationState
state
private final Double
accuracy
private final Double
heading
private final Double
headingAccuracy
private final CalculatedLocation.HeadingAccuracyClass
headingAccuracyClass
private final Long
timestamp
private final Double
lat
private final Double
lon
private final GeoPoint
geoPoint
private final Site
site
private final Building
building
private final Level
level
private final Location
location
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description final CalculatedLocation.LocationType
getType()
Getter for type of location (Indoor, Outdoor, Transition or Unknown) final CalculatedLocation.LocationState
getState()
Getter for state of location (Lost, Faded, Active or Unknown) final Double
getAccuracy()
Getter for estimated positional accuracy of location final Double
getHeading()
Getter for heading (orientation) of location final Double
getHeadingAccuracy()
Getter for estimated accuracy of heading (potential spread error) final CalculatedLocation.HeadingAccuracyClass
getHeadingAccuracyClass()
Getter for accuracy class of heading (Low or High) Low is for locations before convergence or for outdoor locations, High is for locations after convergence final Long
getTimestamp()
Getter for calculation time of location Location calculation timestamp Double
getLat()
Getter for latitude in (-90,90) coordinate space Double
getLon()
Getter for longitude in (-90,90) coordinate space GeoPoint
getGeoPoint()
Site
getSite()
Getter for Site of location Building
getBuilding()
Getter for Building of location Level
getLevel()
Getter for level information of location final Location
getLocation()
final CalculatedLocation
copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy, Double heading, Double headingAccuracy, CalculatedLocation.HeadingAccuracyClass headingAccuracyClass, Long timestamp)
final CalculatedLocation
copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy, Double heading, Double headingAccuracy, CalculatedLocation.HeadingAccuracyClass headingAccuracyClass)
final CalculatedLocation
copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy, Double heading, Double headingAccuracy)
final CalculatedLocation
copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy, Double heading)
final CalculatedLocation
copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy)
final CalculatedLocation
copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState)
final CalculatedLocation
copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType)
final CalculatedLocation
copy(Double lat, Double lon, Site site, Building building, Level level)
final CalculatedLocation
copy(Double lat, Double lon, Site site, Building building)
final CalculatedLocation
copy(Double lat, Double lon, Site site)
final CalculatedLocation
copy(Double lat, Double lon)
final CalculatedLocation
copy(Double lat)
final CalculatedLocation
copy()
-
-
Constructor Detail
-
CalculatedLocation
CalculatedLocation(Double lat, Double lon, Site site, Building building, Level levelInfo, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy, Double heading, Double headingAccuracy, CalculatedLocation.HeadingAccuracyClass headingAccuracyClass, Long timestamp)
-
CalculatedLocation
CalculatedLocation(Double lat, Double lon, Site site, Building building, Level levelInfo, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy, Double heading, Double headingAccuracy, CalculatedLocation.HeadingAccuracyClass headingAccuracyClass)
-
CalculatedLocation
CalculatedLocation(Double lat, Double lon, Site site, Building building, Level levelInfo, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy, Double heading, Double headingAccuracy)
-
CalculatedLocation
CalculatedLocation(Double lat, Double lon, Site site, Building building, Level levelInfo, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy, Double heading)
-
CalculatedLocation
CalculatedLocation(Double lat, Double lon, Site site, Building building, Level levelInfo, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy)
-
CalculatedLocation
CalculatedLocation(Double lat, Double lon, Site site, Building building, Level levelInfo, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState)
-
CalculatedLocation
CalculatedLocation(Double lat, Double lon, Site site, Building building, Level levelInfo, CalculatedLocation.LocationType locationType)
-
CalculatedLocation
CalculatedLocation(Double lat, Double lon, Site site, Building building, Level levelInfo)
-
CalculatedLocation
CalculatedLocation(Double lat)
-
CalculatedLocation
CalculatedLocation()
-
-
Method Detail
-
getType
final CalculatedLocation.LocationType getType()
Getter for type of location (Indoor, Outdoor, Transition or Unknown)
-
getState
final CalculatedLocation.LocationState getState()
Getter for state of location (Lost, Faded, Active or Unknown)
-
getAccuracy
final Double getAccuracy()
Getter for estimated positional accuracy of location
-
getHeading
final Double getHeading()
Getter for heading (orientation) of location
-
getHeadingAccuracy
final Double getHeadingAccuracy()
Getter for estimated accuracy of heading (potential spread error)
-
getHeadingAccuracyClass
final CalculatedLocation.HeadingAccuracyClass getHeadingAccuracyClass()
Getter for accuracy class of heading (Low or High) Low is for locations before convergence or for outdoor locations, High is for locations after convergence
-
getTimestamp
final Long getTimestamp()
Getter for calculation time of location Location calculation timestamp
-
getGeoPoint
GeoPoint getGeoPoint()
-
getBuilding
Building getBuilding()
Getter for Building of location
-
getLocation
final Location getLocation()
-
copy
@JvmOverloads() final CalculatedLocation copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy, Double heading, Double headingAccuracy, CalculatedLocation.HeadingAccuracyClass headingAccuracyClass, Long timestamp)
-
copy
@JvmOverloads() final CalculatedLocation copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy, Double heading, Double headingAccuracy, CalculatedLocation.HeadingAccuracyClass headingAccuracyClass)
-
copy
@JvmOverloads() final CalculatedLocation copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy, Double heading, Double headingAccuracy)
-
copy
@JvmOverloads() final CalculatedLocation copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy, Double heading)
-
copy
@JvmOverloads() final CalculatedLocation copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState, Double accuracy)
-
copy
@JvmOverloads() final CalculatedLocation copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType, CalculatedLocation.LocationState locationState)
-
copy
@JvmOverloads() final CalculatedLocation copy(Double lat, Double lon, Site site, Building building, Level level, CalculatedLocation.LocationType locationType)
-
copy
@JvmOverloads() final CalculatedLocation copy(Double lat, Double lon, Site site, Building building, Level level)
-
copy
@JvmOverloads() final CalculatedLocation copy(Double lat, Double lon, Site site, Building building)
-
copy
@JvmOverloads() final CalculatedLocation copy(Double lat, Double lon, Site site)
-
copy
@JvmOverloads() final CalculatedLocation copy(Double lat, Double lon)
-
copy
@JvmOverloads() final CalculatedLocation copy(Double lat)
-
copy
@JvmOverloads() final CalculatedLocation copy()
-
-
-
-