System.out.println("Found closest: " + closestGeom);
System.out.println();
// Now use the SearchClosest class to perform the search for the closest
System.out.println("Searching for geometries close to " + point);
GeoPipeline pipeline;
try (Transaction tx = graphDb().beginTx()) {
pipeline = GeoPipeline.startNearestNeighborSearch(layer, point.getCoordinate(), 100)
.sort("Distance")
.getMin("Distance");
for (SpatialRecord result : pipeline) {