AI-generated Key Takeaways
- 
          GMTSLatLngrepresents a latitude and longitude coordinate pair, offering methods to interact with location data.
- 
          You can initialize GMTSLatLngobjects with a specific latitude and longitude or from an existingCLLocationCoordinate2Dobject.
- 
          The class provides read-only access to the latitude and longitude properties of a given location. 
- 
          It allows calculating the lateral distance between two GMTSLatLngobjects and provides a means to determine if two locations are almost equal within a defined tolerance.
- 
          Use the initWithLatitude:longitude:method to initialize aGMTSLatLnginstance, and avoid using the unavailableinitmethod.
GMTSLatLng
@interface GMTSLatLng : GMTCImmutableDataObject representing the latitude and longitude.
- 
                  
                  Latitude associated with the object. DeclarationSwift var latitude: Double { get }Objective-C @property (nonatomic, readonly) double latitude;
- 
                  
                  Longitude associated with the object. DeclarationSwift var longitude: Double { get }Objective-C @property (nonatomic, readonly) double longitude;
- 
                  
                  Creates and returns an initialized GMTSLatLngfrom givenCLLocationCoordinate2D.DeclarationSwift convenience init(from coordinate: CLLocationCoordinate2D)Objective-C + (nonnull instancetype)latLngFromCoordinate:(CLLocationCoordinate2D)coordinate;
- 
                  
                  Initializes the object with the specified latitudeand `longitude’.DeclarationSwift init(latitude: Double, longitude: Double)Objective-C - (nonnull instancetype)initWithLatitude:(double)latitude longitude:(double)longitude;
- 
                  
                  Unavailable @remark Use -initWithLatitude:longitude:.DeclarationObjective-C - (nonnull instancetype)init;
- 
                  
                  Creates and returns a CLLocationCoordinate2Dfrom currentGMTSLatLng.DeclarationSwift func coordinate() -> CLLocationCoordinate2DObjective-C - (CLLocationCoordinate2D)coordinate;
- 
                  
                  Gets the lateral distance from the given latlng to the current location. DeclarationSwift func distance(fromLocation latlng: GMTSLatLng) -> CLLocationDistanceObjective-C - (CLLocationDistance)distanceFromLocation:(nonnull GMTSLatLng *)latlng;
- 
                  
                  Indicates if the receiver is almost equal to another given GMTSLatLngobject based on the constant,GMTSLatLngDegreeAlmostEqualTolerance.DeclarationSwift func isAlmostEqual(_ latlng: GMTSLatLng?) -> BoolObjective-C - (BOOL)isAlmostEqual:(nullable GMTSLatLng *)latlng;