public class NearbyLocationImpl extends Object implements NearbyLocation
Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
String |
getCardinalDirection() |
double |
getDistance() |
String |
getName() |
public NearbyLocationImpl(org.locationtech.spatial4j.shape.Point sourceLocation, org.locationtech.spatial4j.shape.Point nearbyLocation, String nearbyLocationName)
NearbyLocationImpl
that describes the position of sourceLocation
relative to nearbyLocation
.sourceLocation
- the primary locationnearbyLocation
- the location close to sourceLocation
nearbyLocationName
- the name of the nearby locationpublic String getName()
getName
in interface NearbyLocation
public String getCardinalDirection()
getCardinalDirection
in interface NearbyLocation
public double getDistance()
getDistance
in interface NearbyLocation
This work is licensed under a Creative Commons Attribution 4.0 International License.