Depending on what you need, if it's just as the crow flies you can always just calculate front end.. (we tend to use haversine in js) but their are other methods
https://henry-rossiter.medium.com/calculating-distance-between-geographic-coordinates-with-javascript-5f3097b61898 If it's just show a set distance from a point on a google map to reveal markers, then you can also just cheat and draw a circle from the current location with radius x and then fit the map to the bounds of that circle 🙂
(obv depends on the use case 1000s or 10000s locations to check and prob not for the front end)