GeoPoint
class GeoPoint : NSObject, NSCopying, @unchecked Sendable
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.
-
The point’s latitude. Must be a value between -90 and 90 (inclusive).
Declaration
Swift
var latitude: Double { get }
-
The point’s longitude. Must be a value between -180 and 180 (inclusive).
Declaration
Swift
var longitude: Double { get }