Class GeoCoordinatesUpdate

  • java.lang.Object
    • com.here.sdk.core.GeoCoordinatesUpdate

  • public final class GeoCoordinatesUpdate
    extends java.lang.Object

    Represents geographical coordinates in 3D space. Unlike GeoCoordinates, its members can be undefined, allowing for APIs that update only the specified parts of geo coordinates.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Double altitude
      Optional altitude in meters.
      java.lang.Double latitude
      Optional latitude in degrees.
      java.lang.Double longitude
      Optional longitude in degrees.
    • Constructor Summary

      Constructors 
      Constructor Description
      GeoCoordinatesUpdate​(GeoCoordinates coordinates)
      Constructs a GeoCoordinatesUpdate from GeoCoordinates
      GeoCoordinatesUpdate​(java.lang.Double latitude, java.lang.Double longitude)
      Constructs a GeoCoordinatesUpdate from the provided latitude and longitude values.
      GeoCoordinatesUpdate​(java.lang.Double latitude, java.lang.Double longitude, java.lang.Double altitude)
      Constructs a GeoCoordinatesUpdate from the provided latitude, longitude and alt values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • latitude

        @Nullable
        public final java.lang.Double latitude

        Optional latitude in degrees.

      • longitude

        @Nullable
        public final java.lang.Double longitude

        Optional longitude in degrees.

      • altitude

        @Nullable
        public final java.lang.Double altitude

        Optional altitude in meters.

    • Constructor Detail

      • GeoCoordinatesUpdate

        public GeoCoordinatesUpdate​(@Nullable
                                    java.lang.Double latitude,
                                    @Nullable
                                    java.lang.Double longitude)

        Constructs a GeoCoordinatesUpdate from the provided latitude and longitude values. Corrects values of latitude and longitude if they exceed the ranges.

        Parameters:
        latitude -

        Latitude in degrees. Positive value means Northern hemisphere. If the value is out of range of [-90.0, 90.0] it's clamped to that range. NaN value is converted to null.

        longitude -

        Longitude in degrees. Positive value means Eastern hemisphere. If the value is out of range of [-180.0, 180.0] it's replaced with a value within the range, representing effectively the same meridian. NaN value is converted to null.

      • GeoCoordinatesUpdate

        public GeoCoordinatesUpdate​(@Nullable
                                    java.lang.Double latitude,
                                    @Nullable
                                    java.lang.Double longitude,
                                    @Nullable
                                    java.lang.Double altitude)

        Constructs a GeoCoordinatesUpdate from the provided latitude, longitude and alt values. Corrects values of latitude and longitude if they exceed the ranges.

        Parameters:
        latitude -

        Latitude in degrees. Positive value means Northern hemisphere. If the value is out of range of [-90.0, 90.0] it's clamped to that range. NaN value is converted to null.

        longitude -

        Longitude in degrees. Positive value means Eastern hemisphere. If the value is out of range of [-180.0, 180.0] it's replaced with a value within the range, representing effectively the same meridian. NaN value is converted to null.

        altitude -

        Altitude in meters. NaN value is converted to null.

      • GeoCoordinatesUpdate

        public GeoCoordinatesUpdate​(@NonNull
                                    GeoCoordinates coordinates)

        Constructs a GeoCoordinatesUpdate from GeoCoordinates

        Parameters:
        coordinates -

        GeoCoordinates to construct GeoCoordinatesUpdate.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object