Skip to content

Commit 3ad67d5

Browse files
committed
Fix the coordinate of JFK airport
1 parent 58e0fcd commit 3ad67d5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -699,12 +699,12 @@ The input geometry is assumed to be in the [EPSG:4326](https://en.wikipedia.org/
699699
-- Note: the coordinates are in WGS84 and [latitude, longitude] axis order
700700
-- Whats the distance between New York and Amsterdam (JFK and AMS airport)?
701701
SELECT st_distance_spheroid(
702-
st_point(40.6446, 73.7797),
702+
st_point(40.6446, -73.7797),
703703
st_point(52.3130, 4.7725)
704704
);
705705
----
706-
5243187.666873225
707-
-- Roughly 5243km!
706+
5863418.7459356235
707+
-- Roughly 5863km!
708708
```
709709

710710

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

Lines changed: 3 additions & 3 deletions
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)