FirebaseFirestore Framework Reference

FIRGeoPoint

@interfaceFIRGeoPoint: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].

  • Creates aGeoPoint from the provided latitude and longitude degrees.

    Declaration

    Objective-C

    -(nonnullinstancetype)initWithLatitude:(double)latitudelongitude:(double)longitude;

    Parameters

    latitude

    The latitude as number between -90 and 90.

    longitude

    The longitude as number between -180 and 180.

  • The point’s latitude. Must be a value between -90 and 90 (inclusive).

    Declaration

    Objective-C

    @property(nonatomic,readonly)doublelatitude;
  • The point’s longitude. Must be a value between -180 and 180 (inclusive).

    Declaration

    Objective-C

    @property(nonatomic,readonly)doublelongitude;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-03-11 UTC.