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.
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)
Copyright © 2012 SpringSource. All Rights Reserved.