Class NearbyLocationImpl

java.lang.Object
org.codice.ddf.spatial.geocoding.context.impl.NearbyLocationImpl
All Implemented Interfaces:
org.codice.ddf.spatial.geocoding.context.NearbyLocation

public class NearbyLocationImpl extends Object implements org.codice.ddf.spatial.geocoding.context.NearbyLocation
  • Constructor Details

    • NearbyLocationImpl

      public NearbyLocationImpl(org.locationtech.spatial4j.shape.Point sourceLocation, org.locationtech.spatial4j.shape.Point nearbyLocation, String nearbyLocationName)
      Constructs a NearbyLocationImpl that describes the position of sourceLocation relative to nearbyLocation.
      Parameters:
      sourceLocation - the primary location
      nearbyLocation - the location close to sourceLocation
      nearbyLocationName - the name of the nearby location
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.codice.ddf.spatial.geocoding.context.NearbyLocation
    • getCardinalDirection

      public String getCardinalDirection()
      Specified by:
      getCardinalDirection in interface org.codice.ddf.spatial.geocoding.context.NearbyLocation
    • getDistance

      public double getDistance()
      Specified by:
      getDistance in interface org.codice.ddf.spatial.geocoding.context.NearbyLocation