Interface GPS

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    DefaultGPS

    public interface GPS
    extends java.io.Serializable
    Represents GPS location of a point
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      GPS create​(double latitude, double longitude)
      Creates IGPS basing on the string DMS(Degrees, Minutes, Second) representations of longitude and latitude
      GPS create​(java.lang.String latitude, java.lang.String longitude)
      Creates IGPS basing on the decimal longitude and latitude
      double getDecimalLatitude()
      Returns the decimal representation of latitude
      double getDecimalLongitude()
      Returns the decimal representation of longitude
      java.lang.String toDMSString()
      Returns DMS representation of coordinates
      java.lang.String toGeocodeServiceFormat()
      Returns lat/long representation of coordinates in the format acceptable by google Service
      java.lang.String toString()
      Returns decimal representation of coordinates
    • Method Detail

      • getDecimalLongitude

        double getDecimalLongitude()
        Returns the decimal representation of longitude
        Returns:
        double
      • getDecimalLatitude

        double getDecimalLatitude()
        Returns the decimal representation of latitude
        Returns:
        double
      • create

        GPS create​(java.lang.String latitude,
                   java.lang.String longitude)
        Creates IGPS basing on the decimal longitude and latitude
        Parameters:
        longitude -
        latitude -
        Returns:
        IGPS
        Throws:
        GeoLocatorException
      • create

        GPS create​(double latitude,
                   double longitude)
        Creates IGPS basing on the string DMS(Degrees, Minutes, Second) representations of longitude and latitude
        Parameters:
        longitude -
        latitude -
        Returns:
        IGPS
        Throws:
        GeoLocatorException
      • toString

        java.lang.String toString()
        Returns decimal representation of coordinates
        Overrides:
        toString in class java.lang.Object
        Returns:
        String
      • toDMSString

        java.lang.String toDMSString()
        Returns DMS representation of coordinates
        Returns:
        String
      • toGeocodeServiceFormat

        java.lang.String toGeocodeServiceFormat()
        Returns lat/long representation of coordinates in the format acceptable by google Service
        Returns:
        String