mongodb geospatial query

24 views
Skip to first unread message

Susan Lin

unread,
Jul 2, 2015, 11:22:34 PM7/2/15
to ve...@googlegroups.com
In mongodb shell I have a command:

db.locations.find( { loc :
                  { $geoWithin :
                    { $centerSphere :
                       [ [ 40 , -40 ] , 10 / 3963.2 ]
                } } } )

I can't figure out how to use the driver to get this query to work? 
Reply all
Reply to author
Forward
0 new messages