Geolocation
QName: f:geolocation
Indicates that this node supports geolocation properties. This feature provisions the node with a loc
property that contains two sub-properties - lat
and long
.
{
"properties": {
"loc": {
"type": "object",
"title": "Geolocation Details",
"properties": {
"lat": {
"type":"number",
"title": "Latitude",
"minimum": -180,
"maximum":180
},
"long": {
"type":"number",
"title": "Longitude",
"minimum": -180,
"maximum":180
}
}
}
}
}
Where:
latitude
- Minimum value is -180. Maximum value is 180.longitude
- Minimum value is -180. Maximum value is 180.
Geolocation properties are specially-treated. They're indexed and are available fast query and lookup
via MongoDB's geolocation indices.
Configuration
Geolocation Example
{
"title": "David Gilmour's Astoria Recording Studio",
"latitude": 51.411942,
"longitude": -0.357823,
"_features": {
"f:geolocation": {
}
}
}