Package de.hybris.platform.storelocator
Interface GeoWebServiceWrapper
-
- All Known Implementing Classes:
BaiduMapsServiceWrapper,CommerceMockGeoWebServiceWrapper,GoogleMapsServiceWrapper,MockedGeoServiceWrapper,MockedGeoServiceWrapper
public interface GeoWebServiceWrapperHides communication that resides behind geo-coding and direction fetching
-
-
Method Summary
All Methods Instance Methods Abstract 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 serviceDistanceAndRoutegetDistanceAndRoute(GPS start, Location dest)Get distance and route that is between start GPS location and destination addressDistanceAndRoutegetDistanceAndRoute(Location start, Location dest)Get distance and route that is between two addresses
-
-
-
Method Detail
-
geocodeAddress
GPS geocodeAddress(Location address)
Translate IAddress to IGPS using 3rd party service- Parameters:
address-- Returns:
- IGPS
- Throws:
GeoServiceWrapperException
-
geocodeAddress
GPS geocodeAddress(AddressData address)
Translate AddressData to IGPS using 3rd party service- Parameters:
address-- Returns:
- IGPS
- Throws:
GeoServiceWrapperException
-
getDistanceAndRoute
DistanceAndRoute getDistanceAndRoute(Location start, Location dest)
Get distance and route that is between two addresses- Parameters:
start-Locationdest-Location- Returns:
DistanceAndRoute- Throws:
GeoServiceWrapperException
-
getDistanceAndRoute
DistanceAndRoute getDistanceAndRoute(GPS start, Location dest)
Get distance and route that is between start GPS location and destination address- Parameters:
start-GPSdest-Location- Returns:
DistanceAndRoute- Throws:
GeoServiceWrapperException
-
formatAddress
java.lang.String formatAddress(Location address)
Formats the address textual information depending on the implementation- Parameters:
address-Location- Returns:
String- Throws:
GeoServiceWrapperException
-
-