In python/pymongo, creating GeoSpatial index is quite trivial:
db.collection.create_index([("loc", GEO2D)], min=-100, max=100)
After that I can insert data using "loc" field.
But in C++/mongocxx, after referring mongocxx document (http://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/tutorial/) and GeoSpatial docement, I still cannot figure out how to do this.
Could anyone kindly show me how to deal with Geospatial index in C++? Thanks in advance.