//FIXME that will have to change probably but today, if someone uses latitude / longitude
// we use boolean style spatial queries
// and on coordinates field, use quad tree query
// FIXME in the future we will likely react to some state stored in SpatialFieldBridge (for the indexing strategy)
String coordinatesField = spatialContext.getCoordinatesField();
FieldBridge fieldBridge = documentBuilder.getBridge( coordinatesField );
if ( fieldBridge instanceof SpatialFieldBridgeByQuadTree ) {
return SpatialQueryBuilderFromCoordinates.buildSpatialQueryByQuadTree(
spatialContext.getCoordinates(),
spatialContext.getRadiusDistance(), // always in KM so far, no need to convert
coordinatesField );