Class Coordinates

  • All Implemented Interfaces:

    
    public final class Coordinates
    
                        

    A data class representing a single geographical coordinate.

    This class holds the latitude, longitude, and an optional altitude value. The order of properties is (latitude, longitude) to align with common mapping SDKs, even though GeoJSON specifies (longitude, latitude).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Double getLat() The latitude of the coordinate.
      final Double getLng() The longitude of the coordinate.
      final Double getAlt() The altitude of the coordinate, in meters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLat

         final Double getLat()

        The latitude of the coordinate.

      • getLng

         final Double getLng()

        The longitude of the coordinate.

      • getAlt

         final Double getAlt()

        The altitude of the coordinate, in meters. Optional.