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
 org.neo4j.helpers.collection.ClosableIterable<T> findWithinBoundingBox(String indexName, double lowerLeftLat, double lowerLeftLon, double upperRightLat, double upperRightLon)
           
 org.neo4j.helpers.collection.ClosableIterable<T> findWithinDistance(String indexName, double lat, double lon, double distanceKm)
           
 org.neo4j.helpers.collection.ClosableIterable<T> findWithinWellKnownText(String indexName, String wellKnownText)
           
 

Method Detail

findWithinBoundingBox

org.neo4j.helpers.collection.ClosableIterable<T> findWithinBoundingBox(String indexName,
                                                                       double lowerLeftLat,
                                                                       double lowerLeftLon,
                                                                       double upperRightLat,
                                                                       double upperRightLon)

findWithinDistance

org.neo4j.helpers.collection.ClosableIterable<T> findWithinDistance(String indexName,
                                                                    double lat,
                                                                    double lon,
                                                                    double distanceKm)

findWithinWellKnownText

org.neo4j.helpers.collection.ClosableIterable<T> findWithinWellKnownText(String indexName,
                                                                         String wellKnownText)

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.