Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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

Return to “Issues”