GeoPoint

class GeoPoint : 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 a GeoPoint from the provided latitude and longitude degrees.

    Declaration

    Swift

    init(latitude: Double, longitude: Double)

    Parameters

    latitude

    The latitude as number between -90 and 90.

    longitude

    The longitude as number between -180 and 180.

  • Undocumented

    Declaration

    Swift

    var latitude: Double { get }
  • Undocumented

    Declaration

    Swift

    var longitude: Double { get }