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 sourceLocationnearbyLocationName - the name of the nearby locationpublic String getName()
getName in interface NearbyLocationpublic String getCardinalDirection()
getCardinalDirection in interface NearbyLocationpublic double getDistance()
getDistance in interface NearbyLocationThis work is licensed under a Creative Commons Attribution 4.0 International License.