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 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

      • getSite

         Site getSite()

        Getter for Site of location

        Returns:

        Site object

      • getLevel

         Level getLevel()

        Getter for level information of location

        Returns:

        Level 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