Update GeoJson section in reference documentation.

Mention the relation of Point/GeoJsonPoint x/y coordinates to longitude/latitude.

Original Pull Request: #3956
This commit is contained in:
Christoph Strobl
2022-02-09 14:38:27 +01:00
parent 2a3f746cb6
commit 4f6501f140
2 changed files with 17 additions and 3 deletions

View File

@@ -1537,6 +1537,12 @@ public class Store {
----
====
[TIP]
====
If the `coordinates` of a GeoJSON object represent _latitude_ and _longitude_ pairs, the _longitude_ goes first followed by _latitude_. +
`GeoJsonPoint` therefore treats `getX()` as _longitude_ and `getY()` as _latitude_.
====
[[mongo.geo-json.query-methods]]
==== GeoJSON Types in Repository Query Methods