How can I determine the distance between two points on a map using GPS coordinates?

I have a strong need to make something using PHP, with the help of which it will be possible to quickly determine the distance between two points on the map by GPS coordinates. For those who are a bit out of the loop – let me clarify that the main difficulty of such a task is that we need to determine the distance between two points on a sphere, not on a plane. Therefore, we need (there are analogs, but I prefer to use) the Haversine method. Continue reading How can I determine the distance between two points on a map using GPS coordinates?