DBFILESGpsCoordinates

@interface DBFILESGpsCoordinates : NSObject <DBSerializable, NSCopying>

The GpsCoordinates struct.

GPS coordinates for a photo or video.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

  • Latitude of the GPS coordinates.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSNumber *_Nonnull latitude;

    Swift

    var latitude: NSNumber { get }
  • Longitude of the GPS coordinates.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSNumber *_Nonnull longitude;

    Swift

    var longitude: NSNumber { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLatitude:(nonnull NSNumber *)latitude
                                   longitude:(nonnull NSNumber *)longitude;

    Swift

    init(latitude: NSNumber, longitude: NSNumber)

    Parameters

    latitude

    Latitude of the GPS coordinates.

    longitude

    Longitude of the GPS coordinates.

    Return Value

    An initialized instance.