DJI Mobile SDK Documentation

      class LocationCoordinate2D

      @EXClassNullAway
      class LocationCoordinate2D implements Serializable
      Package:dji.common.model
      Description:

      A class representing 2-dimensional location coordinate

      Class Members:
      Constructor
      method
      method LocationCoordinate2D
      LocationCoordinate2D(double latitude, double longitude)
      Package:dji.common.model
      Description:

      Construct a DJILocationCoordinate2D object with Latitude and Longitude.

      Input Parameters:
      double latitudeLatitude in degrees.
      double longitudeLongitude in degrees.
      Latitude
      method
      method getLatitude
      double getLatitude()
      Package:dji.common.model
      Description:

      Returns DJILocationCoordinate2D object, which could be used as an input parameter for flight controller's interfaces.

      Return:
      doubleThe double value of latitude.
      Longitude
      method
      method getLongitude
      double getLongitude()
      Package:dji.common.model
      Description:

      Returns the longitude.

      Return:
      doubleThe double value of longitude.