FIRGeoPoint


@interface FIRGeoPoint : NSObject <NSCopying>

An immutable object representing a geographical point in Firestore. The point is represented as a latitude/longitude pair.

Latitude values are in the range of [-90, 90]. Longitude values are in the range of [-180, 180].

  • Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Creates a GeoPoint from the provided latitude and longitude degrees.

    Declaration

    Swift

    init(latitude: Double, longitude: Double)

    Objective-C

    - (nonnull instancetype)initWithLatitude:(double)latitude
                                   longitude:(double)longitude;

    Parameters

    latitude

    The latitude as number between -90 and 90.

    longitude

    The longitude as number between -180 and 180.

  • Undocumented

    Declaration

    Objective-C

    
    @interface FIRGeoPoint : NSObject <NSCopying>
  • Undocumented

    Declaration

    Objective-C

    
    @interface FIRGeoPoint : NSObject <NSCopying>