diff --git a/docs/functions.md b/docs/functions.md index 9261f46c..7853b347 100644 --- a/docs/functions.md +++ b/docs/functions.md @@ -741,12 +741,12 @@ The input geometry is assumed to be in the [EPSG:4326](https://en.wikipedia.org/ -- Note: the coordinates are in WGS84 and [latitude, longitude] axis order -- Whats the distance between New York and Amsterdam (JFK and AMS airport)? SELECT st_distance_spheroid( -st_point(40.6446, 73.7797), +st_point(40.6446, -73.7797), st_point(52.3130, 4.7725) ); ---- -5243187.666873225 --- Roughly 5243km! +5863418.7459356235 +-- Roughly 5863km! ``` ---- diff --git a/spatial/src/spatial/geographiclib/functions/st_distance_spheroid.cpp b/spatial/src/spatial/geographiclib/functions/st_distance_spheroid.cpp index c93e7a1f..9a8ed41a 100644 --- a/spatial/src/spatial/geographiclib/functions/st_distance_spheroid.cpp +++ b/spatial/src/spatial/geographiclib/functions/st_distance_spheroid.cpp @@ -45,12 +45,12 @@ static constexpr const char *DOC_EXAMPLE = R"( -- Note: the coordinates are in WGS84 and [latitude, longitude] axis order -- Whats the distance between New York and Amsterdam (JFK and AMS airport)? SELECT st_distance_spheroid( -st_point(40.6446, 73.7797), +st_point(40.6446, -73.7797), st_point(52.3130, 4.7725) ); ---- -5243187.666873225 --- Roughly 5243km! +5863418.7459356235 +-- Roughly 5863km! )"; static constexpr DocTag DOC_TAGS[] = {{"ext", "spatial"}, {"category", "relation"}, {"category", "spheroid"}};