DBFILESGpsCoordinates

Objective-C

@interface DBFILESGpsCoordinates : NSObject <DBSerializable, NSCopying>

Swift

class 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.

Instance fields

  • Latitude of the GPS coordinates.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var longitude: NSNumber { get }

Constructors

  • 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.