Constructs an instance of this DTO.
The geolocation coordinates. Depending on the type of this geolocation
object, the value of this field may differ as noted in GeolocationDTO.type.
Valid coordinates arrays consist of numbers that are included in the
following ranges:
-180
and 180
, both inclusive.-90
and 90
, both inclusive.
The geolocation object type. Depending on the type of this geolocation
object, the value of the field GeolocationDTO.coordinates may
differ.
This field may contain the following values:
Type | Value Type | Description |
---|---|---|
Point |
[number] |
An array of numbers specifying longitude and latitude - in this order. |
MultiPoint |
number[][] |
An array of positions coordinates. |
LineString |
number[] |
An array of two or more positions. |
MultiLineString |
number[][] |
An array of LineString coordinate array. |
Generated using TypeDoc
A DTO class that consists of the transferable properties of a geolocation. Note this DTO can be used in mongo queries to perform geo-queries as specified in following documentation:
Fields that use this type can be used in query operations like
$geoWithin
.https://www.rfc-editor.org/rfc/rfc7946#section-3.1.4
v0.3.2