Class CLLocation

    • Constructor Detail

      • CLLocation

        public CLLocation()
      • CLLocation

        public CLLocation​(double latitude,
                          double longitude)
      • CLLocation

        public CLLocation​(CLLocationCoordinate2D coordinate,
                          double altitude,
                          double hAccuracy,
                          double vAccuracy,
                          NSDate timestamp)
      • CLLocation

        public CLLocation​(CLLocationCoordinate2D coordinate,
                          double altitude,
                          double hAccuracy,
                          double vAccuracy,
                          double course,
                          double speed,
                          NSDate timestamp)
        Since:
        Available in iOS 4.2 and later.
      • CLLocation

        public CLLocation​(NSCoder decoder)
    • Method Detail

      • getAltitude

        public double getAltitude()
      • getHorizontalAccuracy

        public double getHorizontalAccuracy()
      • getVerticalAccuracy

        public double getVerticalAccuracy()
      • getCourse

        public double getCourse()
        Since:
        Available in iOS 2.2 and later.
      • getSpeed

        public double getSpeed()
        Since:
        Available in iOS 2.2 and later.
      • getTimestamp

        public NSDate getTimestamp()
      • getFloor

        public CLFloor getFloor()
        Since:
        Available in iOS 8.0 and later.
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • getLocationDistanceMax

        public static double getLocationDistanceMax()
        Since:
        Available in iOS 6.0 and later.
      • init

        protected long init​(double latitude,
                            double longitude)
      • init

        protected long init​(CLLocationCoordinate2D coordinate,
                            double altitude,
                            double hAccuracy,
                            double vAccuracy,
                            NSDate timestamp)
      • init

        protected long init​(CLLocationCoordinate2D coordinate,
                            double altitude,
                            double hAccuracy,
                            double vAccuracy,
                            double course,
                            double speed,
                            NSDate timestamp)
        Since:
        Available in iOS 4.2 and later.
      • getDistanceTo

        public double getDistanceTo​(CLLocation location)
        Since:
        Available in iOS 3.2 and later.
      • init

        protected long init​(NSCoder decoder)