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
latitude
The latitude of the point in degrees, between -90 and 90 inclusive.
longitude
The longitude of the point in degrees, between -180 and 180 inclusive.

GetHashCode

overrideintFirebase::Firestore::GeoPoint::GetHashCode()

ToString

overridestringFirebase::Firestore::GeoPoint::ToString()

Public static functions

operator!=

boolFirebase::Firestore::GeoPoint::operator!=(GeoPointlhs,GeoPointrhs)

Operator overload to compare twoGeoPoint values for inequality.

Details
Parameters
lhs
Left value to compare
rhs
Right value to compare
Returns
false iflhs is equal torhs ; otherwisetrue.

operator==

boolFirebase::Firestore::GeoPoint::operator==(GeoPointlhs,GeoPointrhs)

Operator overload to compare twoGeoPoint values for equality.

Details
Parameters
lhs
Left value to compare
rhs
Right value to compare
Returns
true iflhs is equal torhs ; otherwisefalse.

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.