Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Query 2dsphere index
db.neighborhoods.find({'geometry':
{'$geoWithin':
{'$geometry':
{"type":'Polygon',
'coordinates':[[[-73.89483522924053, 40.8262468412122],
[-73.89487088534919, 40.82393727215577],
[-73.89389702292222, 40.8239839983082],
[-73.89483522924053, 40.8262468412122]]]
}}}}).count()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.