GeoPointValue
CEL runtime value for one WGS 84 position.
Implements
Section titled “Implements”Val
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new GeoPointValue(
longitude,latitude):GeoPointValue
Creates one validated position.
Throws when a coordinate is outside its WGS 84 range or is not finite.
Parameters
Section titled “Parameters”longitude
Section titled “longitude”number
Longitude in degrees. The first coordinate, as in GeoJSON.
latitude
Section titled “latitude”number
Latitude in degrees. The second coordinate, as in GeoJSON.
Returns
Section titled “Returns”GeoPointValue
Properties
Section titled “Properties”latitude
Section titled “latitude”
readonlylatitude:number
Latitude in degrees, from -90 through 90.
longitude
Section titled “longitude”
readonlylongitude:number
Longitude in degrees, from -180 through 180.
Methods
Section titled “Methods”convertToNative()
Section titled “convertToNative()”convertToNative(
typeDesc?):unknown
Returns this value for its own native type and rejects other conversions.
Parameters
Section titled “Parameters”typeDesc?
Section titled “typeDesc?”unknown
Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”Val.convertToNative
convertToType()
Section titled “convertToType()”convertToType(
typeValue):Val
Converts only to this opaque CEL type or CEL’s type value.
Parameters
Section titled “Parameters”typeValue
Section titled “typeValue”Type
Returns
Section titled “Returns”Val
Implementation of
Section titled “Implementation of”Val.convertToType
distanceMeters()
Section titled “distanceMeters()”distanceMeters(
other):number
Returns the great-circle distance in metres to another position.
Parameters
Section titled “Parameters”GeoPointValue
Returns
Section titled “Returns”number
equal()
Section titled “equal()”equal(
other):Val
Compares both coordinates exactly.
Parameters
Section titled “Parameters”Val
Returns
Section titled “Returns”Val
Implementation of
Section titled “Implementation of”Val.equal
type()
Section titled “type()”type():
Type
Returns the opaque CEL type of this position.
Returns
Section titled “Returns”Type
Implementation of
Section titled “Implementation of”Val.type
value()
Section titled “value()”value():
unknown
Returns the GeoJSON coordinate order of this position.
Returns
Section titled “Returns”unknown
Implementation of
Section titled “Implementation of”Val.value