Methods

value

static

value(lat, lng) returns rules.LatLng

Create a LatLng from floating point coordinates.

Parameter

lat

rules.Float

The latitude.

Value must not be null.

lng

rules.Float

The longitude.

Value must not be null.

Returns

non-null rules.LatLng a LatLng.

Example

latlng.value(45.0, 90.0)

distance

distance(other) returns rules.Float

Calculate distance between two LatLng points in distance (meters).

Parameter

other

rules.LatLng

The other point.

Value must not be null.

Returns

non-null rules.Float distance in meters.

latitude

latitude() returns rules.Float

Get the latitude value in the range [-90.0, 90.0].

Returns

non-null rules.Float latitude.

longitude

longitude() returns rules.Float

Get the longitude value in the range [-180.0, 180.0].

Returns

non-null rules.Float longitude.