diff --git a/docs/functions.md b/docs/functions.md index 8a0d860f..889f2d68 100644 --- a/docs/functions.md +++ b/docs/functions.md @@ -699,12 +699,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 862f6eee..b4786f9d 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"}};