PHP Calculation of area between coordinates fails for non-square rectangles in WGS84 CRS
I have a PHP function designed to calculate the area between two coordinates using the WGS84 Coordinate Reference System (CRS). The function works correctly when the rectangle formed by the coordinates is closer to a square, but fails to provide accurate results when the rectangle is elongated either horizontally or vertically.