Package org.bremersee.geojson.model
Class LatLon
java.lang.Object
org.bremersee.geojson.model.LatLon
- All Implemented Interfaces:
Serializable
,LatLonAware
The lat lon.
- Author:
- Christian Bremer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bremersee.geojson.model.LatLonAware
LatLonAware.Builder, LatLonAware.BuilderImpl
-
Constructor Summary
ConstructorDescriptionLatLon
(BigDecimal lat, BigDecimal lon) Instantiates a new lat lon.LatLon
(LatLonAware latLonAware) Instantiates a new lat lon. -
Method Summary
Modifier and TypeMethodDescriptionGets latitude.Gets longitude.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bremersee.geojson.model.LatLonAware
hasValues, toLatLonString, toLonLatString
-
Constructor Details
-
LatLon
Instantiates a new lat lon.- Parameters:
lat
- the latitudelon
- the longitude
-
LatLon
Instantiates a new lat lon.- Parameters:
latLonAware
- the lat lon aware
-
-
Method Details
-
getLatitude
Description copied from interface:LatLonAware
Gets latitude.- Specified by:
getLatitude
in interfaceLatLonAware
- Returns:
- the latitude
-
getLongitude
Description copied from interface:LatLonAware
Gets longitude.- Specified by:
getLongitude
in interfaceLatLonAware
- Returns:
- the longitude
-