Package org.bremersee.geojson.model
Class LatitudeLongitude
- java.lang.Object
-
- org.bremersee.geojson.model.LatitudeLongitude
-
- All Implemented Interfaces:
Serializable,LatLonAware
public class LatitudeLongitude extends Object implements LatLonAware, Serializable
The latitude longitude.- 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 LatitudeLongitude(BigDecimal latitude, BigDecimal longitude)Instantiates a new latitude longitude.LatitudeLongitude(LatLonAware latLonAware)Instantiates a new latitude longitude.LatitudeLongitude(org.locationtech.jts.geom.Coordinate coordinate)Instantiates a new latitude longitude (longitude is x, latitude is y).LatitudeLongitude(org.locationtech.jts.geom.Point point)Instantiates a new latitude longitude (longitude is x, latitude 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
-
LatitudeLongitude
public LatitudeLongitude(BigDecimal latitude, BigDecimal longitude)
Instantiates a new latitude longitude.- Parameters:
latitude- the latitudelongitude- the longitude
-
LatitudeLongitude
public LatitudeLongitude(LatLonAware latLonAware)
Instantiates a new latitude longitude.- Parameters:
latLonAware- the lat lon aware
-
LatitudeLongitude
public LatitudeLongitude(org.locationtech.jts.geom.Point point)
Instantiates a new latitude longitude (longitude is x, latitude is y).- Parameters:
point- the point
-
LatitudeLongitude
public LatitudeLongitude(org.locationtech.jts.geom.Coordinate coordinate)
Instantiates a new latitude longitude (longitude is x, latitude 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
-
-