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

java.lang.Object
  extended by 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


Constructor Summary
GeoDistance.FactorFixedSourceDistance(double sourceLatitude, double sourceLongitude, DistanceUnit unit)
           
 
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
 

Constructor Detail

GeoDistance.FactorFixedSourceDistance

public GeoDistance.FactorFixedSourceDistance(double sourceLatitude,
                                             double sourceLongitude,
                                             DistanceUnit unit)
Method Detail

calculate

public double calculate(double targetLatitude,
                        double targetLongitude)
Specified by:
calculate in interface GeoDistance.FixedSourceDistance


Copyright © 2009-2012. All Rights Reserved.