Skip to content

Commit 7f861c0

Browse files
authored
Merge pull request duckdb#467 from duckdb/jfk-fix
2 parents b7805fb + 3ad67d5 commit 7f861c0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/functions.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -741,12 +741,12 @@ The input geometry is assumed to be in the [EPSG:4326](https://en.wikipedia.org/
741741
-- Note: the coordinates are in WGS84 and [latitude, longitude] axis order
742742
-- Whats the distance between New York and Amsterdam (JFK and AMS airport)?
743743
SELECT st_distance_spheroid(
744-
st_point(40.6446, 73.7797),
744+
st_point(40.6446, -73.7797),
745745
st_point(52.3130, 4.7725)
746746
);
747747
----
748-
5243187.666873225
749-
-- Roughly 5243km!
748+
5863418.7459356235
749+
-- Roughly 5863km!
750750
```
751751

752752
----

spatial/src/spatial/geographiclib/functions/st_distance_spheroid.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ static constexpr const char *DOC_EXAMPLE = R"(
4545
-- Note: the coordinates are in WGS84 and [latitude, longitude] axis order
4646
-- Whats the distance between New York and Amsterdam (JFK and AMS airport)?
4747
SELECT st_distance_spheroid(
48-
st_point(40.6446, 73.7797),
48+
st_point(40.6446, -73.7797),
4949
st_point(52.3130, 4.7725)
5050
);
5151
----
52-
5243187.666873225
53-
-- Roughly 5243km!
52+
5863418.7459356235
53+
-- Roughly 5863km!
5454
)";
5555

5656
static constexpr DocTag DOC_TAGS[] = {{"ext", "spatial"}, {"category", "relation"}, {"category", "spheroid"}};

0 commit comments

Comments
 (0)