Interface GPS

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultGPS

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

    Modifier and Type
    Method
    Description
    create(double latitude, double longitude)
    Creates IGPS basing on the string DMS(Degrees, Minutes, Second) representations of longitude and latitude
    create(String latitude, String longitude)
    Creates IGPS basing on the decimal longitude and latitude
    double
    Returns the decimal representation of latitude
    double
    Returns the decimal representation of longitude
    Returns DMS representation of coordinates
    Returns lat/long representation of coordinates in the format acceptable by google Service
    Returns decimal representation of coordinates
  • Method Details

    • 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(String latitude, 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

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

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

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