Spring Data Neo4j

org.springframework.data.neo4j.repository
Interface SpatialRepository<T>

All Known Implementing Classes:
AbstractGraphRepository, NodeGraphRepositoryImpl, RelationshipGraphRepository

public interface SpatialRepository<T>

Repository for spatial queries. WKT is well known text format like POINT( LON LAT ) POLYGON (( LON1 LAT1 LON2 LAT2 LON3 LAT3 LON1 LAT1 ))

See Also:
Well Known Text Spatial Format Right now requires a field: @Indexed(type = POINT, indexName = "...") String wkt; inside the entity.

Method Summary
 EndResult<T> findWithinBoundingBox(String indexName, double lowerLeftLat, double lowerLeftLon, double upperRightLat, double upperRightLon)
           
 EndResult<T> findWithinDistance(String indexName, double lat, double lon, double distanceKm)
           
 EndResult<T> findWithinWellKnownText(String indexName, String wellKnownText)
           
 

Method Detail

findWithinBoundingBox

EndResult<T> findWithinBoundingBox(String indexName,
                                   double lowerLeftLat,
                                   double lowerLeftLon,
                                   double upperRightLat,
                                   double upperRightLon)

findWithinDistance

EndResult<T> findWithinDistance(String indexName,
                                double lat,
                                double lon,
                                double distanceKm)

findWithinWellKnownText

EndResult<T> findWithinWellKnownText(String indexName,
                                     String wellKnownText)

Spring Data Neo4j

Copyright © 2012 SpringSource. All Rights Reserved.