Page 2 of 2

Sending Multiple Variables into a single WHERE clause for a DB Query

Posted: Fri Jul 05, 2013 7:44 am
by Maryna Brodina

Hello! In mongoDB GeoPoint coordinates stores as [long, lat]. That's why you need to work with this format. So "where" query also has this format:
code{ "location" : { "$nearSphere" : [-117, 33], "$maxDistanceInMiles" : 80 } }/code