public class MeridianLocation
extends java.lang.Object
implements java.io.Serializable
A location object returned by the MeridianLocationManager
that contains normalized data about a device’s indoor location at a specific point in time.
Constructor and Description |
---|
MeridianLocation()
A constructor for MeridianLocation, only the timestamp will be initialized.
|
MeridianLocation(MeridianLocation average) |
Modifier and Type | Method and Description |
---|---|
double |
distanceTo(MeridianLocation location)
Returns the shortest distance between this location and location
|
double |
getAccuracy()
Gets the accuracy of this location as the maximum error in meters.
|
long |
getAgeMillis()
A utility function to get the current age of this location in milliseconds.
|
EditorKey |
getMapKey()
Returns the Meridian Map Key that is associated with this location.
|
android.graphics.PointF |
getPoint()
Gets the point in pixels of this location on its associated map.
|
LocationProvider |
getProvider()
Gets the primary provider that generated this location.
|
java.util.Date |
getTimestamp()
Gets the point in time that this location was generated.
|
double |
getUnitsPerMeter() |
boolean |
isInvalid()
Determines a locations validity.
|
void |
setAccuracy(double accuracy)
Sets the accuracy of this location as the maximum error in meters.
|
void |
setAgeMillis(long ageInMillis)
A utility function to set the current age of this location in milliseconds.
|
void |
setMap(EditorKey mapKey)
Sets a known Meridian Map Key for this location.
|
void |
setPoint(android.graphics.PointF point)
Set the point in pixels of this location on its associated map.
|
void |
setProvider(LocationProvider provider)
Sets the primary provider that generated this location.
|
void |
setUnitsPerMeter(double unitsPerMeter) |
java.lang.String |
toString() |
public MeridianLocation()
A constructor for MeridianLocation, only the timestamp will be initialized.
public MeridianLocation(MeridianLocation average)
public EditorKey getMapKey()
Returns the Meridian Map Key that is associated with this location.
public void setMap(EditorKey mapKey)
Sets a known Meridian Map Key for this location.
public android.graphics.PointF getPoint()
Gets the point in pixels of this location on its associated map.
public void setPoint(android.graphics.PointF point)
Set the point in pixels of this location on its associated map.
public double getAccuracy()
Gets the accuracy of this location as the maximum error in meters.
public void setAccuracy(double accuracy)
Sets the accuracy of this location as the maximum error in meters.
public void setUnitsPerMeter(double unitsPerMeter)
public double getUnitsPerMeter()
public java.util.Date getTimestamp()
Gets the point in time that this location was generated.
public void setProvider(LocationProvider provider)
Sets the primary provider that generated this location.
public LocationProvider getProvider()
Gets the primary provider that generated this location.
public long getAgeMillis()
A utility function to get the current age of this location in milliseconds.
public void setAgeMillis(long ageInMillis)
A utility function to set the current age of this location in milliseconds.
public double distanceTo(MeridianLocation location)
Returns the shortest distance between this location and location
location
- location to get distance topublic boolean isInvalid()
Determines a locations validity. A location is valid if it has a non null map key and its point’s x and y are real numbers.
@NonNull public java.lang.String toString()
toString
in class java.lang.Object