| 
         此版本仍在开发中,尚未被视为稳定版本。对于最新的稳定版本,请使用 Spring Data Neo4j 7.4.4!  | 
    
空间类型
Spring Data Neo4j 支持以下空间类型
支持的转换
- 
Spring Data common 的
Point(必须是数据库中的 WGS 84-2D/SRID 4326 点) - 
GeographicPoint2d(WGS84 2D/SRID 4326) - 
GeographicPoint3d(WGS84 3D/SRID 4979) - 
CartesianPoint2d(笛卡尔 2D/SRID 7203) - 
CartesianPoint3d(笛卡尔 3D/SRID 9157) 
派生的查找器关键字
如果您使用的是本机 Neo4j Java 驱动程序org.neo4j.driver.types.Point类型
您可以在 Derived Finder 方法中使用以下关键字和参数类型。
区域内的查询:
- 
findBy[…]Within(org.springframework.data.geo.Circle circle) - 
findBy[…]Within(org.springframework.data.geo.Box box) - 
findBy[…]Within(org.springframework.data.neo4j.repository.query.BoundingBox boundingBox) 
您还可以使用org.springframework.data.geo.Polygon但需要将其传递到BoundingBox通过调用BoundingBox#of. | 
查询某个点附近:
- 
findBy[…]Near(org.neo4j.driver.types.Point point)- 返回按到给定点的距离升序排序的结果 - 
findBy[…]Near(Point point, org.springframework.data.geo.Distance max) - 
findBy[…]Near(Point point, org.springframework.data.domain.Range<Distance> between) - 
findBy[…]Near(Range<Distance> between, Point p)