Class Location
-
- All Implemented Interfaces:
-
android.os.Parcelable
public class Location extends LocationAware implements Parcelable
Base location model which can represent both indoor and outdoor locations Encapsulates spatial coordinates (either indoor space of lat/lon), level, site, building information
-
-
Field Summary
Fields Modifier and Type Field Description 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
-
Method Summary
Modifier and Type Method Description 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 Integer
getSiteIdentifier()
Getter for Site Identifier of location Building
getBuilding()
Getter for Building of location Integer
getBuildingIdentifier()
Getter for Building Identifier of location Level
getLevel()
Getter for level information of location Integer
getLevelIndex()
Getter for level index of location Boolean
isValid()
Location validity checker Checks for x, y, level, site and building validity Boolean
isGeoValid()
Location geo-coordinates validity checker String
toString()
Boolean
equals(Object other)
Integer
hashCode()
-
-
Method Detail
-
getLat
Double getLat()
Getter for latitude in (-90,90) coordinate space
- Returns:
Latitude in degrees
-
getLon
Double getLon()
Getter for longitude in (-90,90) coordinate space
- Returns:
Longitude in degrees
-
getGeoPoint
GeoPoint getGeoPoint()
-
getSiteIdentifier
Integer getSiteIdentifier()
Getter for Site Identifier of location
- Returns:
Site identifier
-
getBuilding
Building getBuilding()
Getter for Building of location
- Returns:
Building object
-
getBuildingIdentifier
Integer getBuildingIdentifier()
Getter for Building Identifier of location
- Returns:
Building identifier
-
getLevelIndex
Integer getLevelIndex()
Getter for level index of location
- Returns:
Level index
-
isValid
Boolean isValid()
Location validity checker Checks for x, y, level, site and building validity
- Returns:
True if location is valid, false otherwise
-
isGeoValid
Boolean isGeoValid()
Location geo-coordinates validity checker
- Returns:
True if both latitude and longitude are valid, false otherwise
-
-
-
-