Skip to content

Commit 62e0220

Browse files
committed
Corrected code-documentation with values for earth radii.
1 parent 904d363 commit 62e0220

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

php_geospatial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern zend_module_entry geospatial_module_entry;
3939
#define GEO_DEG_TO_RAD 0.017453292519943295769236907684886
4040
/**
4141
* Calculate the radius using WGS-84's equatorial radius of
42-
* 6378137m
42+
* 6,378,1370m
4343
*/
4444
#define GEO_EARTH_RADIUS 6378.137
4545

tests/geospatial_haversine_london_edinburgh.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ echo haversine(51.5171, 0.1062, 55.9500, 3.2200);
2828
return
2929
3030
Accept defined (equatorial) Earth Radius in km (which is based on WGS-84):
31-
- 6378137m (at the equator).
31+
- 6,378,1370m (at the equator).
32+
- 6,356,7523m (at the equator).
3233
3334
Sanity check - expected distance: approx 534km.
3435
*/

0 commit comments

Comments
 (0)