Class CommerceMockGeoWebServiceWrapper
- java.lang.Object
-
- de.hybris.platform.storelocator.impl.CommerceMockGeoWebServiceWrapper
-
- All Implemented Interfaces:
GeoWebServiceWrapper
- Direct Known Subclasses:
BaiduMapsServiceWrapper,MockedGeoServiceWrapper,MockedGeoServiceWrapper
public class CommerceMockGeoWebServiceWrapper extends java.lang.Object implements GeoWebServiceWrapper
-
-
Constructor Summary
Constructors Constructor Description CommerceMockGeoWebServiceWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringformatAddress(Location address)Formats the address textual information depending on the implementationGPSgeocodeAddress(AddressData address)Translate AddressData to IGPS using 3rd party serviceGPSgeocodeAddress(Location address)Translate IAddress to IGPS using 3rd party serviceprotected BaseStoreServicegetBaseStoreService()protected java.util.Map<java.lang.String,GPS>getCountryIsoGPSLocationMap()DistanceAndRoutegetDistanceAndRoute(GPS start, Location destination)Get distance and route that is between start GPS location and destination addressDistanceAndRoutegetDistanceAndRoute(Location start, Location destination)Get distance and route that is between two addressesvoidsetBaseStoreService(BaseStoreService baseStoreService)voidsetCountryIsoGPSLocationMap(java.util.Map<java.lang.String,GPS> countryIsoGPSLocationMap)
-
-
-
Method Detail
-
geocodeAddress
public GPS geocodeAddress(Location address)
Description copied from interface:GeoWebServiceWrapperTranslate IAddress to IGPS using 3rd party service- Specified by:
geocodeAddressin interfaceGeoWebServiceWrapper- Returns:
- IGPS
-
geocodeAddress
public GPS geocodeAddress(AddressData address)
Description copied from interface:GeoWebServiceWrapperTranslate AddressData to IGPS using 3rd party service- Specified by:
geocodeAddressin interfaceGeoWebServiceWrapper- Returns:
- IGPS
-
getDistanceAndRoute
public DistanceAndRoute getDistanceAndRoute(Location start, Location destination)
Description copied from interface:GeoWebServiceWrapperGet distance and route that is between two addresses- Specified by:
getDistanceAndRoutein interfaceGeoWebServiceWrapper- Parameters:
start-Locationdestination-Location- Returns:
DistanceAndRoute
-
getDistanceAndRoute
public DistanceAndRoute getDistanceAndRoute(GPS start, Location destination)
Description copied from interface:GeoWebServiceWrapperGet distance and route that is between start GPS location and destination address- Specified by:
getDistanceAndRoutein interfaceGeoWebServiceWrapper- Parameters:
start-GPSdestination-Location- Returns:
DistanceAndRoute
-
formatAddress
public java.lang.String formatAddress(Location address)
Description copied from interface:GeoWebServiceWrapperFormats the address textual information depending on the implementation- Specified by:
formatAddressin interfaceGeoWebServiceWrapper- Parameters:
address-Location- Returns:
String
-
getBaseStoreService
protected BaseStoreService getBaseStoreService()
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
-
setCountryIsoGPSLocationMap
public void setCountryIsoGPSLocationMap(java.util.Map<java.lang.String,GPS> countryIsoGPSLocationMap)
-
getCountryIsoGPSLocationMap
protected java.util.Map<java.lang.String,GPS> getCountryIsoGPSLocationMap()
-
-