Skip to main content

GEO coordinate (geo-point)

{
"application": "Tutorial",
"label": "GEO Koordinaten",
"project": "inSynergie CMS",
"tags": [],
"fields": {
"place": {
"cms": {
"column": true,
"label": "City"
},
"empty": false,
"type": "string"
},
"gps": {
"cms": {
"column": true,
"label": "Coordinates"
},
"optional": true,
"type": "geo-point"
}
},
"hideId": true
}

Currently only a single coordinate (Point) is supported.

Form

The coordinate is stored as a pair of longitude and latitude. The interface uses a slightly extended representation that will in future also leave room for areas or arbitrary outlines:

{
"type": "Point",
"coordinates": [7.25331, 50.69547]
}

In the list, the numeric values are currently simply displayed:

List

Parameters​

GEO coordinates are a CMS-specific type with no equivalent in fastest-validator. The only parameter is optional. They are not localizable.

/** Point on the earth. */
interface IGeoPoint {
/** Longitude and latitude, in this order. */
coordinates: [number, number]
/** Marks a single point. */
type: 'Point'
}

For queries there is the operation $near, see Queries.