Skip to content

GeoPointValue

CEL runtime value for one WGS 84 position.

  • Val

new GeoPointValue(longitude, latitude): GeoPointValue

Creates one validated position.

Throws when a coordinate is outside its WGS 84 range or is not finite.

number

Longitude in degrees. The first coordinate, as in GeoJSON.

number

Latitude in degrees. The second coordinate, as in GeoJSON.

GeoPointValue

readonly latitude: number

Latitude in degrees, from -90 through 90.


readonly longitude: number

Longitude in degrees, from -180 through 180.

convertToNative(typeDesc?): unknown

Returns this value for its own native type and rejects other conversions.

unknown

unknown

Val.convertToNative


convertToType(typeValue): Val

Converts only to this opaque CEL type or CEL’s type value.

Type

Val

Val.convertToType


distanceMeters(other): number

Returns the great-circle distance in metres to another position.

GeoPointValue

number


equal(other): Val

Compares both coordinates exactly.

Val

Val

Val.equal


type(): Type

Returns the opaque CEL type of this position.

Type

Val.type


value(): unknown

Returns the GeoJSON coordinate order of this position.

unknown

Val.value