Class B2CTelcoMockGeoWebServiceWrapper

  • All Implemented Interfaces:
    de.hybris.platform.storelocator.GeoWebServiceWrapper

    public class B2CTelcoMockGeoWebServiceWrapper
    extends de.hybris.platform.storelocator.impl.CommerceMockGeoWebServiceWrapper
    Mock implementation of de.hybris.platform.storelocator.GeoWebServiceWrapper returning evaluated coordinates of requested address using coordinates of known PointOfService and extending the default implementation giving more precise coordinates.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected de.hybris.platform.storelocator.GPS evaluateGeoCenter​(java.util.List<PointOfServiceModel> pointOfServiceList)
      Evaluates an approximate geo center for set of Point Of Services using an average of latitudes and longitudes for every Point Of Service.
      de.hybris.platform.storelocator.GPS geocodeAddress​(de.hybris.platform.storelocator.data.AddressData address)  
      de.hybris.platform.storelocator.GPS geocodeAddress​(de.hybris.platform.storelocator.location.Location location)  
      • Methods inherited from class de.hybris.platform.storelocator.impl.CommerceMockGeoWebServiceWrapper

        formatAddress, getBaseStoreService, getCountryIsoGPSLocationMap, getDistanceAndRoute, getDistanceAndRoute, setBaseStoreService, setCountryIsoGPSLocationMap
      • Methods inherited from class java.lang.Object

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

      • B2CTelcoMockGeoWebServiceWrapper

        public B2CTelcoMockGeoWebServiceWrapper()
    • Method Detail

      • geocodeAddress

        public de.hybris.platform.storelocator.GPS geocodeAddress​(de.hybris.platform.storelocator.data.AddressData address)
        Specified by:
        geocodeAddress in interface de.hybris.platform.storelocator.GeoWebServiceWrapper
        Overrides:
        geocodeAddress in class de.hybris.platform.storelocator.impl.CommerceMockGeoWebServiceWrapper
      • geocodeAddress

        public de.hybris.platform.storelocator.GPS geocodeAddress​(de.hybris.platform.storelocator.location.Location location)
        Specified by:
        geocodeAddress in interface de.hybris.platform.storelocator.GeoWebServiceWrapper
        Overrides:
        geocodeAddress in class de.hybris.platform.storelocator.impl.CommerceMockGeoWebServiceWrapper
      • evaluateGeoCenter

        protected de.hybris.platform.storelocator.GPS evaluateGeoCenter​(java.util.List<PointOfServiceModel> pointOfServiceList)
        Evaluates an approximate geo center for set of Point Of Services using an average of latitudes and longitudes for every Point Of Service.
        Parameters:
        pointOfServiceList - - a set of PointOfServiceModel class instances whose coordinates are used to calculate the 'geo center'
        Returns:
        GPS coordinates