Doubt in a quiz

I am not able to see “geospatial data” as a data type in MongoDB Compass.
Refer to this quiz https://university.mongodb.com/mercury/M001/2019_February/chapter/Chapter_1_Introduction/lesson/595003bf818f923c99a4a4c8/tab/595003cb24493e28661cba32 . Instead of “geospatial data” I can see “coordinates” as a data type.

@PREM_88123,

Geospatial data is not a data type, we are using this data and stored as coordinates type.
In MongoDB, you can store geospatial data as GeoJSON objects or as coordinate pairs.

Using this you can calculate longitude and latitude coordinates respectivetly and further more like distances between two places using these values (like : Flight travel distance between two places etc.,).

Go through this link for answering more of your queires: https://docs.mongodb.com/manual/geospatial-queries/

1 Like