To find square area data from mongodb Query using 2 google map point (latitude and longitude)
问题 I am working on mongodb Geospatial feature. Following is my db schema { _id:5c6fea5aa7f54038cc63db92, location:{ coordinates:[-96.81916,33.07516], type:"Point" }, userId:1 } Indexing on location field with 2dsphere I have 2 point and each one have latitude and longitude and its example is below sw_latitude : 32.76286484066411 sw_longitude : -96.91870791625979 ne_latitude : 32.789133220783015 ne_longitude : -96.67529208374026 base on these 2 points i need to get all userId which are cover in