Class GPSLocator


  • public class GPSLocator
    extends java.lang.Object
    device GPS locator
    Version:
    1.0.0
    Author:
    wmy
    • Constructor Summary

      Constructors 
      Constructor Description
      GPSLocator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ConnStatus getConnStatus()
      get GPS connection status
      int getEastOrWest()
      determine whether the current position is in east or west longitude, 0 - east longitude; 1 - west longitude
      int getLatitude()
      tet the latitude value of the current location in degrees * 10000000
      int getLocateMode()
      get positioning mode, 0-unpositioned; 1-SPS; 2-Differential; 3-PPS
      int getLongitude()
      get the longitude value of the current position in degrees*10000000
      int getSouthOrNorth()
      Determine whether the current position is located in the south or north latitude, north and south latitude: 0 - north latitude; 1 - south latitude
      void setConnStatus​(ConnStatus connStatus)  
      void setEastOrWest​(int eastOrWest)  
      void setLatitude​(int latitude)  
      void setLocateMode​(int locateMode)  
      void setLongitude​(int longitude)  
      void setSouthOrNorth​(int southOrNorth)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GPSLocator

        public GPSLocator()
    • Method Detail

      • getConnStatus

        public ConnStatus getConnStatus()
        get GPS connection status
        Returns:
        GPS connection status
      • setConnStatus

        public void setConnStatus​(ConnStatus connStatus)
      • getLocateMode

        public int getLocateMode()
        get positioning mode, 0-unpositioned; 1-SPS; 2-Differential; 3-PPS
        Returns:
        positioning mode
      • setLocateMode

        public void setLocateMode​(int locateMode)
      • getEastOrWest

        public int getEastOrWest()
        determine whether the current position is in east or west longitude, 0 - east longitude; 1 - west longitude
        Returns:
        east longitude or west longitude
      • setEastOrWest

        public void setEastOrWest​(int eastOrWest)
      • getLongitude

        public int getLongitude()
        get the longitude value of the current position in degrees*10000000
        Returns:
        longitude value
      • setLongitude

        public void setLongitude​(int longitude)
      • getSouthOrNorth

        public int getSouthOrNorth()
        Determine whether the current position is located in the south or north latitude, north and south latitude: 0 - north latitude; 1 - south latitude
        Returns:
        south latitude or north latitude
      • setSouthOrNorth

        public void setSouthOrNorth​(int southOrNorth)
      • getLatitude

        public int getLatitude()
        tet the latitude value of the current location in degrees * 10000000
        Returns:
        latitude value
      • setLatitude

        public void setLatitude​(int latitude)