If i have a my cordinate , i want to get every cordinated in the radius of 5 km

i have the database of many events ,i want filter out the events happening within 5 kms of radius from my location.Currently i am doing it using haversine running every event in a for loop,which is very time consuming can anyone suggest an alternative for this method

The method i am currently using is haversine in a for loop for comparing every event and thats not a proper way

Back to Top