summaryrefslogtreecommitdiff
path: root/jstests/core/geo_s2near_equator_opposite.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_s2near_equator_opposite.js')
-rw-r--r--jstests/core/geo_s2near_equator_opposite.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/jstests/core/geo_s2near_equator_opposite.js b/jstests/core/geo_s2near_equator_opposite.js
index 13bbc776daa..754c27e523d 100644
--- a/jstests/core/geo_s2near_equator_opposite.js
+++ b/jstests/core/geo_s2near_equator_opposite.js
@@ -14,12 +14,16 @@ t.ensureIndex({loc: '2dsphere'});
// upper bound for half of earth's circumference in meters
var dist = 40075000 / 2 + 1;
-var nearSphereCount = t.find({
- loc: {$nearSphere: {$geometry: {type: 'Point', coordinates: [180, 0]}, $maxDistance: dist}}
-}).itcount();
+var nearSphereCount =
+ t.find({
+ loc: {
+ $nearSphere: {$geometry: {type: 'Point', coordinates: [180, 0]}, $maxDistance: dist}
+ }
+ }).itcount();
var nearCount =
- t.find({loc: {$near: {$geometry: {type: 'Point', coordinates: [180, 0]}, $maxDistance: dist}}})
- .itcount();
+ t.find({
+ loc: {$near: {$geometry: {type: 'Point', coordinates: [180, 0]}, $maxDistance: dist}}
+ }).itcount();
var geoNearResult = db.runCommand(
{geoNear: t.getName(), near: {type: 'Point', coordinates: [180, 0]}, spherical: true});