Skip to content

Commit fbbfc80

Browse files
committed
fix spacing
1 parent 29c9ba2 commit fbbfc80

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

source/geo.txt

+7-6
Original file line numberDiff line numberDiff line change
@@ -208,16 +208,17 @@ from nearest to farthest.
208208

209209
# set query with point at MongoDB headquarters and a maxDistance of 1000 meters
210210
query = {
211-
"location.geo": {
212-
"$near": {
211+
"location.geo": {
212+
"$near": {
213213
"$geometry": {
214+
# Search around this location
214215
"type": "Point",
215-
"coordinates": [-73.986805, 40.7620853] # Search around this location
216+
"coordinates": [-73.986805, 40.7620853]
216217
},
217218
"$maxDistance": 1000 # Distance in meters (1 km)
218-
}
219-
}
220-
}
219+
}
220+
}
221+
}
221222

222223
# fetches the _id and theaterId fields
223224
projection = { "theaterId": 1 }

0 commit comments

Comments
 (0)