org.elasticsearch.index.search.geo
Class GeoDistance.SimpleDistanceBoundingCheck

java.lang.Object
  extended by org.elasticsearch.index.search.geo.GeoDistance.SimpleDistanceBoundingCheck
All Implemented Interfaces:
GeoDistance.DistanceBoundingCheck
Enclosing class:
GeoDistance

public static class GeoDistance.SimpleDistanceBoundingCheck
extends Object
implements GeoDistance.DistanceBoundingCheck


Constructor Summary
GeoDistance.SimpleDistanceBoundingCheck(Point topLeft, Point bottomRight)
           
 
Method Summary
 Point bottomRight()
           
 boolean isWithin(double targetLatitude, double targetLongitude)
           
 Point topLeft()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoDistance.SimpleDistanceBoundingCheck

public GeoDistance.SimpleDistanceBoundingCheck(Point topLeft,
                                               Point bottomRight)
Method Detail

isWithin

public boolean isWithin(double targetLatitude,
                        double targetLongitude)
Specified by:
isWithin in interface GeoDistance.DistanceBoundingCheck

topLeft

public Point topLeft()
Specified by:
topLeft in interface GeoDistance.DistanceBoundingCheck

bottomRight

public Point bottomRight()
Specified by:
bottomRight in interface GeoDistance.DistanceBoundingCheck


Copyright © 2009-2012. All Rights Reserved.