Class DistanceUnawareLocation

java.lang.Object
de.hybris.platform.storelocator.location.impl.DistanceUnawareLocation
All Implemented Interfaces:
Location, Serializable
Direct Known Subclasses:
DefaultLocation

public class DistanceUnawareLocation extends Object implements Location, Serializable
Base implementation of the 'not distance aware' Location
See Also:
  • Constructor Details

    • 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 Details

    • getAddressData

      public AddressData getAddressData()
      Description copied from interface: Location
      Get AddressData object
      Specified by:
      getAddressData in interface Location
      Returns:
      String
    • getCountry

      public 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 String getName()
      Description copied from interface: Location
      Return name
      Specified by:
      getName in interface Location
      Returns:
      String
    • getTextualAddress

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

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

      public 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 String getType()
      Specified by:
      getType in interface Location
      Returns:
      String describing location type