Class CalculatedLocation
-
- 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
-
Field Summary
Fields Modifier and Type Field Description public final static Parcelable.Creator<CalculatedLocation>
CREATOR
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 Integer
siteIdentifier
private final Building
building
private final Integer
buildingIdentifier
private final Level
level
private final Integer
levelIndex
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 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()
final Location
toAndroidLocation()
Boolean
equals(Object other)
Integer
hashCode()
-
Methods inherited from class com.pointrlabs.core.positioning.model.Location
getBuilding, getBuildingIdentifier, getGeoPoint, getLat, getLevel, getLevelIndex, getLon, getSite, getSiteIdentifier, isGeoValid, isValid, toString
-
Methods inherited from class com.pointrlabs.core.positioning.model.LocationAware
getLocation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
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)
- Returns:
Location type
-
getState
final CalculatedLocation.LocationState getState()
Getter for state of location (Lost, Faded, Active or Unknown)
- Returns:
Location state
-
getAccuracy
final Double getAccuracy()
Getter for estimated positional accuracy of location
- Returns:
Accuracy in meters - gives the margin of error of the calculated location
-
getHeading
final Double getHeading()
Getter for heading (orientation) of location
- Returns:
Heading (yaw) relative to the floorplan (the map/content on Pointr Cloud) in radians, zero is up, increases clockwise.
-
getHeadingAccuracy
final Double getHeadingAccuracy()
Getter for estimated accuracy of heading (potential spread error)
- Returns:
Heading accuracy in radians - the level of error the calculated heading may have.
-
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
-
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()
-
toAndroidLocation
final Location toAndroidLocation()
-
-
-
-