Class DistanceUnawareLocation

  • All Implemented Interfaces:
    Location, java.io.Serializable
    Direct Known Subclasses:
    DefaultLocation

    public class DistanceUnawareLocation
    extends java.lang.Object
    implements Location, java.io.Serializable
    Base implementation of the 'not distance aware' Location
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AddressData getAddressData()
      Get AddressData object
      java.lang.String getCountry()
      Get the address'es country ISO code
      java.lang.String getDescription()
      Returns a POS description
      GPS getGPS()
      Getting the geographic coordinates of the IAddress
      java.lang.String getMapIconUrl()
      returns MapIcon that is to be displayed on the map to represent this location
      java.lang.String getName()
      Return name
      java.lang.String getTextualAddress()
      Getting the textual address of the IAddress
      java.lang.String getType()  
      • Methods inherited from class java.lang.Object

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

      • DistanceUnawareLocation

        public DistanceUnawareLocation​(PointOfServiceModel posModel)
        creates a new location using the given point of service.
        Parameters:
        posModel - the point of service to use
        Throws:
        LocationInstantiationException - if the point of service has invalid geo location data
    • Method Detail

      • getCountry

        public java.lang.String getCountry()
        Description copied from interface: Location
        Get the address'es country ISO code
        Specified by:
        getCountry in interface Location
        Returns:
        String
      • getGPS

        public GPS getGPS()
        Description copied from interface: Location
        Getting the geographic coordinates of the IAddress
        Specified by:
        getGPS in interface Location
        Returns:
        GPS
      • getName

        public java.lang.String getName()
        Description copied from interface: Location
        Return name
        Specified by:
        getName in interface Location
        Returns:
        String
      • getTextualAddress

        public java.lang.String getTextualAddress()
        Description copied from interface: Location
        Getting the textual address of the IAddress
        Specified by:
        getTextualAddress in interface Location
        Returns:
        String
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: Location
        Returns a POS description
        Specified by:
        getDescription in interface Location
        Returns:
        String
      • getMapIconUrl

        public java.lang.String getMapIconUrl()
        Description copied from interface: Location
        returns MapIcon that is to be displayed on the map to represent this location
        Specified by:
        getMapIconUrl in interface Location
        Returns:
        String
      • getType

        public java.lang.String getType()
        Specified by:
        getType in interface Location
        Returns:
        String describing location type