Query Database by distance from location

When I needed to calculate the distance between 2 given latLng coordinates, I installed the geolib NPM, and I think it worked well. It is very easy to use.
See: