latLngRect = new S2LatLngRect(minLatLng, maxLatLng);
}
return latLngRect;
} else if (geoQueryRequest instanceof QueryRadiusRequest) {
QueryRadiusRequest queryRadiusRequest = (QueryRadiusRequest) geoQueryRequest;
GeoPoint centerPoint = queryRadiusRequest.getCenterPoint();
double radiusInMeter = queryRadiusRequest.getRadiusInMeter();
S2LatLng centerLatLng = S2LatLng.fromDegrees(centerPoint.getLatitude(), centerPoint.getLongitude());
double latReferenceUnit = centerPoint.getLatitude() > 0.0 ? -1.0 : 1.0;
S2LatLng latReferenceLatLng = S2LatLng.fromDegrees(centerPoint.getLatitude() + latReferenceUnit,