Package org.bremersee.geojson.model
Class LatLon
- java.lang.Object
-
- org.bremersee.geojson.model.LatLon
-
- All Implemented Interfaces:
Serializable,LatLonAware
public class LatLon extends Object implements LatLonAware, Serializable
The lat lon.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bremersee.geojson.model.LatLonAware
LatLonAware.Builder, LatLonAware.BuilderImpl
-
-
Constructor Summary
Constructors Constructor Description LatLon(BigDecimal lat, BigDecimal lon)Instantiates a new lat lon.LatLon(LatLonAware latLonAware)Instantiates a new lat lon.LatLon(org.locationtech.jts.geom.Coordinate coordinate)Instantiates a new lat lon (lon is x, lat is y).LatLon(org.locationtech.jts.geom.Point point)Instantiates a new lat lon (lon is x, lat is y).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalgetLatitude()Gets latitude.BigDecimalgetLongitude()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, toCoordinate, toLatLonString, toLonLatString, toPoint
-
-
-
-
Constructor Detail
-
LatLon
public LatLon(BigDecimal lat, BigDecimal lon)
Instantiates a new lat lon.- Parameters:
lat- the latlon- the lon
-
LatLon
public LatLon(LatLonAware latLonAware)
Instantiates a new lat lon.- Parameters:
latLonAware- the lat lon aware
-
LatLon
public LatLon(org.locationtech.jts.geom.Point point)
Instantiates a new lat lon (lon is x, lat is y).- Parameters:
point- the point
-
LatLon
public LatLon(org.locationtech.jts.geom.Coordinate coordinate)
Instantiates a new lat lon (lon is x, lat is y).- Parameters:
coordinate- the coordinate
-
-
Method Detail
-
getLatitude
public BigDecimal getLatitude()
Description copied from interface:LatLonAwareGets latitude.- Specified by:
getLatitudein interfaceLatLonAware- Returns:
- the latitude
-
getLongitude
public BigDecimal getLongitude()
Description copied from interface:LatLonAwareGets longitude.- Specified by:
getLongitudein interfaceLatLonAware- Returns:
- the longitude
-
-