org.elasticsearch.index.search.geo
Class GeoDistance.FactorFixedSourceDistance
java.lang.Object
org.elasticsearch.index.search.geo.GeoDistance.FactorFixedSourceDistance
- All Implemented Interfaces:
- GeoDistance.FixedSourceDistance
- Enclosing class:
- GeoDistance
public static class GeoDistance.FactorFixedSourceDistance
- extends Object
- implements GeoDistance.FixedSourceDistance
Method Summary |
double |
calculate(double targetLatitude,
double targetLongitude)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeoDistance.FactorFixedSourceDistance
public GeoDistance.FactorFixedSourceDistance(double sourceLatitude,
double sourceLongitude,
DistanceUnit unit)
calculate
public double calculate(double targetLatitude,
double targetLongitude)
- Specified by:
calculate
in interface GeoDistance.FixedSourceDistance
Copyright © 2009-2012. All Rights Reserved.