I have been trying to make a sorting system for my firebase farmacies by geolocation. I have a full database of pharmacies and their corresponding geolocation by radiance. I want to find the ones whitin a certain distance but the algorithm shown here in the community does not return the correct distance. I cannot see the bug and have tried lots of different things.
Can anyone see a bug
I have reed a lot and every time a geolocation is made a degrees unit is found and it says something like 23 degrees north. I thought the radiance number is the decimal number. I will try to make a convertion.