Let G be a connected graph. The nonlocal metric dimension of G, denoted by \(\textrm{dim}_{n \ell }(G)\) , is a concept that has been introduced as a variant of the standard metric dimension. The nonlocal metric dimension stipulates a minimum size for a set of vertices, the purpose of which is to distinguish any two non-adjacent vertices by the distance of a member from that set. Klavžar and Kuziak (Bull Malays Math Sci Soc 46(2):66, 2023) proved that \(\textrm{dim}_{n \ell }(G) \le \beta '(G)-1\) , for graphs G of girth at least 7, where \(\beta '(G)\) is the size of the smallest possible edge cover of G. The authors have posed a question with the objective of improving this bound. The aim of this paper is to address this question. In this paper we show that this bound is satisfied for graphs with girth at least 5. In addition, for non-tree graphs G with girth at least 7, this bound is improved to sharp bound \(\beta '(G)-2\) , and finally, we improve the bound to sharp bound \(\beta '(G)-3\) whenever \(G\ne C_8\) is a non-tree graph of girth at least 8.