public class GeoQueries<S extends org.neo4j.graphdb.PropertyContainer,T> extends Object implements SpatialRepository<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
BBOX |
static String |
WITHIN_DISTANCE |
static String |
WITHIN_WKT_GEOMETRY |
| Constructor and Description |
|---|
GeoQueries(LegacyIndexSearcher<S,T> legacyIndexSearcher) |
| Modifier and Type | Method and Description |
|---|---|
Result<T> |
findWithinBoundingBox(String indexName,
Box box) |
Result<T> |
findWithinBoundingBox(String indexName,
double lowerLeftLat,
double lowerLeftLon,
double upperRightLat,
double upperRightLon) |
Result<T> |
findWithinDistance(String indexName,
Circle circle) |
Result<T> |
findWithinDistance(String indexName,
double lat,
double lon,
double distanceKm) |
Result<T> |
findWithinShape(String indexName,
Shape shape)
Converts the shape into a well-known text representation and executes the appropriate WKT query
|
Result<T> |
findWithinWellKnownText(String indexName,
String wellKnownText) |
static org.neo4j.helpers.Pair<String,String> |
toQueryParams(Part.Type type,
Object value) |
public static final String WITHIN_WKT_GEOMETRY
public static final String WITHIN_DISTANCE
public static final String BBOX
public GeoQueries(LegacyIndexSearcher<S,T> legacyIndexSearcher)
public Result<T> findWithinWellKnownText(String indexName, String wellKnownText)
findWithinWellKnownText in interface SpatialRepository<T>public Result<T> findWithinShape(String indexName, Shape shape)
SpatialRepositoryfindWithinShape in interface SpatialRepository<T>public Result<T> findWithinDistance(String indexName, double lat, double lon, double distanceKm)
findWithinDistance in interface SpatialRepository<T>public Result<T> findWithinDistance(String indexName, Circle circle)
findWithinDistance in interface SpatialRepository<T>public Result<T> findWithinBoundingBox(String indexName, double lowerLeftLat, double lowerLeftLon, double upperRightLat, double upperRightLon)
findWithinBoundingBox in interface SpatialRepository<T>public Result<T> findWithinBoundingBox(String indexName, Box box)
findWithinBoundingBox in interface SpatialRepository<T>Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.