ParseGeoPoint class
ParseGeoPoint represents a latitude / longitude point that may be associated with a key in a {@link ParseObject} or used as a reference point for geo queries. This allows proximity based queries on the key.
Only one key in a class may contain a ParseGeoPoint.
Constructors
- ParseGeoPoint()
- Creates a new default point with latitude and longitude set to 0.0.
- ParseGeoPoint.set(double latitude, double longitude)
- Creates a new point with the specified latitude and longitude.
Properties
- latitude ↔ double
-
Set latitude. Valid range is (-90.0, 90.0). Extremes should not be used.
read / write
- longitude ↔ double
-
Set longitude. Valid range is (-180.0, 180.0). Extremes should not be used.
read / write
- toJson → dynamic
-
read-only
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
toString(
) → String -
Returns a string representation of this object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Constants
- EARTH_MEAN_RADIUS_KM → const double
-
6371.0
- EARTH_MEAN_RADIUS_MILE → const double
-
3958.8