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
ConstructorsConstructorDescriptionLatLon(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, waitMethods 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:LatLonAwareGets latitude.- Specified by:
getLatitudein interfaceLatLonAware- Returns:
- the latitude
-
getLongitude
Description copied from interface:LatLonAwareGets longitude.- Specified by:
getLongitudein interfaceLatLonAware- Returns:
- the longitude
-