Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Geospatial enhancements 32 dedicated types for GeoJSON. interface StoreRepository extends CrudRepository<Store, Long> { ! ! } List<Store> findByLocationWithin(Polygon polygon); repo.findByLocationWithin( new GeoJsonPolygon( new Point(-73.992514, 40.758934), new Point(-73.961138, 40.760348), new Point(-73.991658, 40.730006), new Point(-73.992514, 40.758934))); { "location": { "$geoWithin": { "$geometry": { "type": "Polygon", "coordinates": [ [ [-73.992514,40.758934], [-73.961138,40.760348],
...