Firebase. Firestore. GeoPoint
Immutable struct representing a geographic location in CloudFirestore.
Summary
Inheritance
Inherits from: IEquatable< GeoPoint >Constructors and Destructors | |
---|---|
GeoPoint(double latitude, double longitude) Creates a new value using the provided latitude and longitude values. |
Properties | |
---|---|
Latitude | double The latitude, in degrees, in the range -90 to 90 inclusive. |
Longitude | double The longitude, in degrees, in the range -180 to 180 inclusive. |
Public functions | |
---|---|
Equals(object obj) | override bool |
Equals(GeoPoint other) | bool |
GetHashCode() | override int |
ToString() | override string |
Public static functions | |
---|---|
operator!=(GeoPoint lhs,GeoPoint rhs) | bool Operator overload to compare twoGeoPoint values for inequality. |
operator==(GeoPoint lhs,GeoPoint rhs) | bool Operator overload to compare twoGeoPoint values for equality. |
Properties
Latitude
doubleFirebase::Firestore::GeoPoint::Latitude
The latitude, in degrees, in the range -90 to 90 inclusive.
Longitude
doubleFirebase::Firestore::GeoPoint::Longitude
The longitude, in degrees, in the range -180 to 180 inclusive.
Public functions
Equals
overrideboolFirebase::Firestore::GeoPoint::Equals(objectobj)
Equals
boolFirebase::Firestore::GeoPoint::Equals(GeoPointother)
GeoPoint
Firebase::Firestore::GeoPoint::GeoPoint(doublelatitude,doublelongitude)
Creates a new value using the provided latitude and longitude values.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
GetHashCode
overrideintFirebase::Firestore::GeoPoint::GetHashCode()
ToString
overridestringFirebase::Firestore::GeoPoint::ToString()
Public static functions
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 2021-06-17 UTC.