LocationDirective

@objcMembers
@objc(GSLocationDirective)
public class LocationDirective : GuidedDirective

Directive for a move to an absolute Location (“Move To”).

  • Latitude of the location (in degrees) to reach.

    Declaration

    Swift

    public internal(set) var latitude: Double { get }
  • Longitude of the location (in degrees) to reach.

    Declaration

    Swift

    public internal(set) var longitude: Double { get }
  • Altitude above sea level (in meters) to reach.

    Declaration

    Swift

    public internal(set) var altitude: Double { get }
  • Orientation of the guided flight.

    Declaration

    Swift

    public internal(set) var orientation: OrientationDirective { get }
  • Orientation type of the guided flight for Objective-C.

    Declaration

    Swift

    @objc(orientationDirective)
    public var gsOrientationDirective: GSOrientationDirective { get }
  • Orientation heading of the guided flight for Objective-C.

    Declaration

    Swift

    @objc(heading)
    public var gsHeading: Double { get }
  • Constructor.

    Declaration

    Swift

    public init(latitude: Double, longitude: Double, altitude: Double, orientation: OrientationDirective,
                speed: GuidedPilotingSpeed?)

    Parameters

    latitude

    latitude destination

    longitude

    longitude destination

    altitude

    altitude destination

    orientation

    orientation that takes the drone during a LocationDirective

    speed

    guided flight speed. nil if no speed directive.

  • Equatable concordance

    Declaration

    Swift

    public override func isEqual(_ object: Any?) -> Bool
  • Debug description.

    Declaration

    Swift

    override public var description: String { get }