This month, I’ve been programming in PHP and MySQL for GIS. While researching the topic, I had difficulty finding geographic calculations to find the distance between two locations, so I wanted to share them here. The simple way of calculating a distance between two points is using the Pythagorean formula to calculate the hypotenuse of a triangle (A² + B² = C²). This is known as the Euclidean dist
![Calculating Distance Between 2 Locations Of Latitude & Longitude (PHP, Python, MySQL)](https://cdn-ak-scissors.b.st-hatena.com/image/square/3c0167d8a0535a912154f5f74df325a4e9975854/height=288;version=1;width=512/https%3A%2F%2Fmartech.zone%2Fwp-content%2Fuploads%2F2021%2F03%2Fhaversine-formula-great-circle-distance-php-python-mysql.png)