org.springframework.data.solr.core.geo
Class BoundingBox
java.lang.Object
org.springframework.data.solr.core.geo.BoundingBox
public class BoundingBox
- extends Object
Implementation of bounding box which is an area defined by two longitudes and two latitudes to be used in spatial
queries
- Author:
- John Dorman, Christoph Strobl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundingBox
public BoundingBox(GeoLocation geoLocationStart,
GeoLocation geoLocationEnd)
- Create new BoundingBox for given locations
- Parameters:
geoLocationStart - must not be nullgeoLocationEnd - must not be null
startingAt
public static BoundingBox.Builder startingAt(GeoLocation start)
- create bounding box via builder.
BoundingBox.startingAt(locationStart).endingAt(locationEnd)
- Parameters:
start -
- Returns:
getGeoLocationStart
public GeoLocation getGeoLocationStart()
setGeoLocationStart
public void setGeoLocationStart(GeoLocation geoLocationStart)
getGeoLocationEnd
public GeoLocation getGeoLocationEnd()
setGeoLocationEnd
public void setGeoLocationEnd(GeoLocation geoLocationEnd)
Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.