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
-
-
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 Building
getBuilding()
Getter for Building of location Level
getLevel()
Getter for level information 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()
-
getBuilding
Building getBuilding()
Getter for Building of location
- Returns:
Building object
-
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
-
-
-
-