Class GeoComparator

java.lang.Object
org.deltava.comparators.GeoComparator
All Implemented Interfaces:
Serializable, Comparator<GeoLocation>

public class GeoComparator extends Object implements Comparator<GeoLocation>, Serializable
A comparator to sort geographic locations by their distance from a fixed point.
Since:
1.0
Version:
8.6
Author:
Luke
See Also:
  • Constructor Details

    • GeoComparator

      public GeoComparator(GeoLocation loc)
      Creates a new GeoComparator, comparing distance from an arbitrary location.
      Parameters:
      loc - the location
    • GeoComparator

      public GeoComparator(GeoLocation loc, boolean useFeet)
      Creates a new GeoComparator, comparing distance from an arbitrary location.
      Parameters:
      loc - the location
      useFeet - TRUE if the calculation should be measured in feet, otherwise FALSE for miles
  • Method Details