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

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

public static class GeoDistance.PlaneFixedSourceDistance
extends Object
implements GeoDistance.FixedSourceDistance


Constructor Summary
GeoDistance.PlaneFixedSourceDistance(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.PlaneFixedSourceDistance

public GeoDistance.PlaneFixedSourceDistance(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.