Interface LatLonAware

  • All Known Implementing Classes:
    LatitudeLongitude, LatLon

    public interface LatLonAware
    The interface lat lon aware.
    Author:
    Christian Bremer
    • Method Detail

      • getLatitude

        BigDecimal getLatitude()
        Gets latitude.
        Returns:
        the latitude
      • getLongitude

        BigDecimal getLongitude()
        Gets longitude.
        Returns:
        the longitude
      • hasValues

        default boolean hasValues()
        Determines whether latitude and longitude have values.
        Returns:
        true if latitude and longitude is not null, otherwise false
      • toPoint

        default org.locationtech.jts.geom.Point toPoint()
        To GeoJSON point (x is longitude, y is latitude).
        Returns:
        the point
      • toCoordinate

        default org.locationtech.jts.geom.Coordinate toCoordinate()
        To GeoJSON coordinate (x is longitude, y is latitude).
        Returns:
        the coordinate
      • toLatLonString

        default String toLatLonString()
        To comma separated latitude longitude string.
        Returns:
        the string
      • toLonLatString

        default String toLonLatString()
        To comma separated longitude latitude string.
        Returns:
        the string