Class DistanceUnawareLocation
- java.lang.Object
-
- de.hybris.platform.storelocator.location.impl.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
-
-
Constructor Summary
Constructors Constructor Description DistanceUnawareLocation(PointOfServiceModel posModel)creates a new location using the given point of service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressDatagetAddressData()Get AddressData objectjava.lang.StringgetCountry()Get the address'es country ISO codejava.lang.StringgetDescription()Returns a POS descriptionGPSgetGPS()Getting the geographic coordinates of the IAddressjava.lang.StringgetMapIconUrl()returns MapIcon that is to be displayed on the map to represent this locationjava.lang.StringgetName()Return namejava.lang.StringgetTextualAddress()Getting the textual address of the IAddressjava.lang.StringgetType()
-
-
-
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
-
getAddressData
public AddressData getAddressData()
Description copied from interface:LocationGet AddressData object- Specified by:
getAddressDatain interfaceLocation- Returns:
- String
-
getCountry
public java.lang.String getCountry()
Description copied from interface:LocationGet the address'es country ISO code- Specified by:
getCountryin interfaceLocation- Returns:
- String
-
getGPS
public GPS getGPS()
Description copied from interface:LocationGetting the geographic coordinates of the IAddress
-
getName
public java.lang.String getName()
Description copied from interface:LocationReturn name
-
getTextualAddress
public java.lang.String getTextualAddress()
Description copied from interface:LocationGetting the textual address of the IAddress- Specified by:
getTextualAddressin interfaceLocation- Returns:
- String
-
getDescription
public java.lang.String getDescription()
Description copied from interface:LocationReturns a POS description- Specified by:
getDescriptionin interfaceLocation- Returns:
- String
-
getMapIconUrl
public java.lang.String getMapIconUrl()
Description copied from interface:Locationreturns MapIcon that is to be displayed on the map to represent this location- Specified by:
getMapIconUrlin interfaceLocation- Returns:
- String
-
-