MongoDB allows for geospatial queries on location data stored in collections. There are two main index types - 2d for flat geometry and 2dsphere for spherical geometry. Queries include proximity queries to find nearest points, intersection queries to find intersections with shapes, and inclusion queries to find points within shapes. The appropriate index type and query operators depend on whether location data is represented as legacy coordinate pairs or GeoJSON objects and whether distances are calculated on a flat plane or sphere.