rules. LatLng
Type representing a geopoint. Used in rules as latlng.
Methods
distance
distance(other) returns rules.Float
Calculate distance between two LatLng points in distance (meters).
Parameter |
|
|---|---|
|
other |
The other point. Value must not be null. |
- Returns
-
non-null rules.Floatdistance in meters.
latitude
latitude() returns rules.Float
Get the latitude value in the range [-90.0, 90.0].
- Returns
-
non-null rules.Floatlatitude.
longitude
longitude() returns rules.Float
Get the longitude value in the range [-180.0, 180.0].
- Returns
-
non-null rules.Floatlongitude.