Filter Query: Geo Bounding Box Filter
Show only content created in Aarau.
{
"kind": "GeoBoundingBoxFilter",
"field": "fieldpath",
"topLeft": {
"lat": 47.4117082,
"lon": 8.0569206,
},
"bottomRight": {
"lat": 47.3854459,
"lon": 9.0569206,
}
}
Behavior
Creates a rectangle of geo points using TopLeft (1) and BottomRight (2) points and filters for the content which Geo Point values are inside this rectangle.
Properties
kind | Required Which filter to use, as string e.g. "GeoBoundingBoxFilter" |
field | Required The field's name to execute the filter on. It is composed of the field ids of the hierarchy joined with "." (i.e. personLayer.address.region). |
topLeft | The top left corner of the bounding box's geolocation (latitude and longitude). |
lat | Latitude value (decimal value) |
lon | Longitude (decimal value) |
bottomRight | The bottom right corner of the bounding box's geolocation (latitude and longitude). |
lat | Latitude value (decimal value) |
lon | Longitude (decimal value) |