DJI Mobile SDK Documentation

      class FlyZoneInformation

      final class FlyZoneInformation
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Restricted fl zone information class. Including restricted-fly zone ID, restricted fly zone name, type of restricted fly zone, restricted fly zone shape, restricted fly zone strategy, etc.

      Supported since MSDK 5.3.0

      Class Members:

      Basic Information

      method getFlyZoneID
      int getFlyZoneID()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the fly zone's ID.

      Supported since MSDK 5.3.0

      Return:
      intReturns the fly zone's ID.
      method
      method getName
      String getName()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the name of the fly zone.

      Supported since MSDK 5.3.0

      Return:
      StringReturns the name of the fly zone.
      method getFlyZoneType
      FlyZoneType getFlyZoneType()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the type fly zone. Includes airports, parks, schools, stadium, etc.

      Supported since MSDK 5.3.0

      Return:
      FlyZoneTypeReturns the type fly zone.
      method getCategory
      FlyZoneCategory getCategory()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the category of the fly zone. Includes restricted zone, authorization zone, warning zone and enhanced warning zone, etc.

      Supported since MSDK 5.3.0

      Return:
      FlyZoneCategoryReturns the category of the fly zone.
      method
      method getShape
      FlyZoneShape getShape()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the shape of the fly zone. Includes circles and polygons.

      Supported since MSDK 5.3.0

      Return:
      FlyZoneShapeReturns the shape of the fly zone.


      GeoZone Data

      method getLowerLimit
      double getLowerLimit()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the lower limit of GeoZone data, currently only supports EU GeoZone data.

      Supported since MSDK 5.3.0

      Return:
      doubleReturns the lower limit of GeoZone data.
      method getUpperLimit
      double getUpperLimit()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the upper limit of GeoZone data, currently only supports EU GeoZone data.

      Supported since MSDK 5.3.0

      Return:
      doubleReturns the upper limit of GeoZone data.


      Circular Restricted Fly Zone Information

      method getCircleCenter
      LocationCoordinate2D getCircleCenter()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the coordinates of the center of the circular restricted-fly zone.

      Supported since MSDK 5.3.0

      Return:
      LocationCoordinate2DReturns the coordinates of the center of the circular restricted-fly zone.
      method getCircleRadius
      double getCircleRadius()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the radius of the circular restricted fly zone.

      Supported since MSDK 5.3.0

      Return:
      doubleReturns the radius of the circular restricted fly zone.


      Polygon Restricted Fly Zone Information

      method getMultiPolygonFlyZoneInformation
      List<MultiPolygonFlyZoneInformation> getMultiPolygonFlyZoneInformation()
      Package:dji.v5.manager.aircraft.flysafe.info
      Description:

      Gets the polygon restricted fly zone information. Contains cylindrical and polygonal no-fly zone information.

      Supported since MSDK 5.3.0

      Return:
      List<MultiPolygonFlyZoneInformation>Returns information about the restricted fly zone for the polygon.