Closed Range Queries

Closed range queries use the start_range and end_range parameters with the bounds specified.

Closed range queries are used to query items with a certain range. If no range is supplied, the full data set is returned. For example, if only the longitude (1st dimension) and the latitude (2nd dimension) is emitted, the bounds of a country could be queried.

For example, to query shops in Germany that are open between 10:00 and 20:00.

In this case, the emit could be:

emit([{
   "type": "Point",
   "coordinates":[10.9, 48.4]
}, [1000, 2000]], null);

This emit cannot be a query with a bounding box because it contains three dimensions.

The query for the shop emit could be:

?start_range=[5.87,47.27,1000]&end_range=[15.04,55.06,2000]