When you need to calculate the distance between 2 gps cordinates(latitude, longitude) you can use this mysql query.
1 | 'SELECT (((acos(sin((' + latitude + |
You can add a having statement or distance conditional to filter out rows.
Hope this helps.
When you need to calculate the distance between 2 gps cordinates(latitude, longitude) you can use this mysql query.
1 | 'SELECT (((acos(sin((' + latitude + |
You can add a having statement or distance conditional to filter out rows.
Hope this helps.