newDistanceQuery

fun newDistanceQuery(field: String?, latitude: Double, longitude: Double, radiusMeters: Double): Query

Create a query for matching points within the specified distance of the supplied location.

Return

query matching points within this distance

Parameters

field

field name. must not be null.

latitude

latitude at the center: must be within standard +/-90 coordinate bounds.

longitude

longitude at the center: must be within standard +/-180 coordinate bounds.

radiusMeters

maximum distance from the center in meters: must be non-negative and finite.

Throws

if field is null, location has invalid coordinates, or radius is invalid.