MongoDB | Geospatial Data

Insert data

db.places.insertOne({
      name: 'California Academy of Sciences',
      location: { type: 'Point', coordinates: [-122.4640133, 37.7690971] }
    })

Type is GeoJSON Object.

Cordinates need to be provided first value as Longitude and second value as latitude

Built with Hugo
Theme Stack designed by Jimmy