Class DefaultGPS

java.lang.Object
de.hybris.platform.storelocator.impl.DefaultGPS
All Implemented Interfaces:
GPS, Serializable

public class DefaultGPS extends Object implements GPS
See Also:
  • Constructor Details

    • DefaultGPS

      public DefaultGPS()
    • DefaultGPS

      public DefaultGPS(double latitude, double longitude)
      Parameters:
      longitude -
      latitude -
    • DefaultGPS

      public DefaultGPS(int[] latitudeDMS, int[] longitudeDMS)
      Parameters:
      longitudeDMS -
      latitudeDMS -
  • Method Details

    • create

      public GPS create(String latitude, String longitude)
      Description copied from interface: GPS
      Creates IGPS basing on the decimal longitude and latitude
      Specified by:
      create in interface GPS
      Returns:
      IGPS
    • create

      public GPS create(double latitude, double longitude)
      Description copied from interface: GPS
      Creates IGPS basing on the string DMS(Degrees, Minutes, Second) representations of longitude and latitude
      Specified by:
      create in interface GPS
      Returns:
      IGPS
    • getDecimalLatitude

      public double getDecimalLatitude()
      Description copied from interface: GPS
      Returns the decimal representation of latitude
      Specified by:
      getDecimalLatitude in interface GPS
      Returns:
      double
    • getDecimalLongitude

      public double getDecimalLongitude()
      Description copied from interface: GPS
      Returns the decimal representation of longitude
      Specified by:
      getDecimalLongitude in interface GPS
      Returns:
      double
    • toDMSString

      public String toDMSString()
      Description copied from interface: GPS
      Returns DMS representation of coordinates
      Specified by:
      toDMSString in interface GPS
      Returns:
      String
    • toString

      public String toString()
      Description copied from interface: GPS
      Returns decimal representation of coordinates
      Specified by:
      toString in interface GPS
      Overrides:
      toString in class Object
      Returns:
      String
    • toGeocodeServiceFormat

      public String toGeocodeServiceFormat()
      Description copied from interface: GPS
      Returns lat/long representation of coordinates in the format acceptable by google Service
      Specified by:
      toGeocodeServiceFormat in interface GPS
      Returns:
      String