newBoxQuery

fun newBoxQuery(field: String?, minLatitude: Double, maxLatitude: Double, minLongitude: Double, maxLongitude: Double): Query

Create a query for matching a bounding box.

The box may cross over the dateline.

Return

query matching points within this box

Parameters

field

field name. must not be null.

minLatitude

latitude lower bound: must be within standard +/-90 coordinate bounds.

maxLatitude

latitude upper bound: must be within standard +/-90 coordinate bounds.

minLongitude

longitude lower bound: must be within standard +/-180 coordinate bounds.

maxLongitude

longitude upper bound: must be within standard +/-180 coordinate bounds.

Throws

if field is null, or the box has invalid coordinates.