Class Geolocation


  • public class Geolocation
    extends java.lang.Object
    An object that represents the location coordinates of a location message.
    • Constructor Summary

      Constructors 
      Constructor Description
      Geolocation​(double latitude, double longitude)
      Creates an object for the location coordinates of a location message.
      Geolocation​(double latitude, double longitude, java.lang.String url, java.lang.String title)
      Creates an object for the location coordinates of a location message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getLatitude()
      The GPS coordinate's latitude value
      double getLongitude()
      The GPS coordinate's longitude value
      java.lang.String getTitle()
      A title for the location
      java.lang.String getUrl()
      A URL for displaying a map of the location
      void setLatitude​(double latitude)
      Sets the GPS coordinate's latitude value
      void setLongitude​(double longitude)
      Sets the GPS coordinate's longitude value
      void setTitle​(java.lang.String title)
      Sets a title for the location
      void setUrl​(java.lang.String url)
      Sets a URL for displaying a map of the location
      • Methods inherited from class java.lang.Object

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

      • Geolocation

        public Geolocation​(double latitude,
                           double longitude)
        Creates an object for the location coordinates of a location message.
        Parameters:
        latitude - The GPS coordinate's latitude value
        longitude - The GPS coordinate's longitude value
      • Geolocation

        public Geolocation​(double latitude,
                           double longitude,
                           java.lang.String url,
                           java.lang.String title)
        Creates an object for the location coordinates of a location message.
        Parameters:
        latitude - The GPS coordinate's latitude value
        longitude - The GPS coordinate's longitude value
        url - A URL for displaying a map of the location
        title - A title for the location
    • Method Detail

      • getLatitude

        public double getLatitude()
        The GPS coordinate's latitude value
        Returns:
        The GPS coordinate's latitude value
      • setLatitude

        public void setLatitude​(double latitude)
        Sets the GPS coordinate's latitude value
        Parameters:
        latitude - The GPS coordinate's latitude value
      • getLongitude

        public double getLongitude()
        The GPS coordinate's longitude value
        Returns:
        The GPS coordinate's longitude value
      • setLongitude

        public void setLongitude​(double longitude)
        Sets the GPS coordinate's longitude value
        Parameters:
        longitude - The GPS coordinate's longitude value
      • getUrl

        public java.lang.String getUrl()
        A URL for displaying a map of the location
        Returns:
        A URL for displaying a map of the location
      • setUrl

        public void setUrl​(java.lang.String url)
        Sets a URL for displaying a map of the location
        Parameters:
        url - A URL for displaying a map of the location
      • getTitle

        public java.lang.String getTitle()
        A title for the location
        Returns:
        A title for the location
      • setTitle

        public void setTitle​(java.lang.String title)
        Sets a title for the location
        Parameters:
        title - A title for the location