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 Summary
ConstructorsConstructorDescriptionNearbyLocationImpl(org.locationtech.spatial4j.shape.Point sourceLocation, org.locationtech.spatial4j.shape.Point nearbyLocation, String nearbyLocationName) Constructs aNearbyLocationImplthat describes the position ofsourceLocationrelative tonearbyLocation. -
Method Summary
-
Constructor Details
-
NearbyLocationImpl
public NearbyLocationImpl(org.locationtech.spatial4j.shape.Point sourceLocation, org.locationtech.spatial4j.shape.Point nearbyLocation, String nearbyLocationName) Constructs aNearbyLocationImplthat describes the position ofsourceLocationrelative tonearbyLocation.- Parameters:
sourceLocation- the primary locationnearbyLocation- the location close tosourceLocationnearbyLocationName- the name of the nearby location
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.codice.ddf.spatial.geocoding.context.NearbyLocation
-
getCardinalDirection
- Specified by:
getCardinalDirectionin interfaceorg.codice.ddf.spatial.geocoding.context.NearbyLocation
-
getDistance
public double getDistance()- Specified by:
getDistancein interfaceorg.codice.ddf.spatial.geocoding.context.NearbyLocation
-