I have seen so many functions but it happens to work only for MySQL or Postgresql. I want the equivalent logic for PHP. I’m doing some comparisons,
like I have this data that were being produced when created.
Lat: 56.130366
Long: -106.34677099999
Later on, I want to check if this coordinates will fall within a radius of another coordinates.
Lat: 57.223366
Long: -106.34675644699
radius: 100000 ( meters )
Thanks in advance!
Thanks for the help. Below is an example function that takes two sets of longitude and latitude co-ordinates and returns the distance between the two.