Package de.hybris.platform.storelocator
Interface GeoWebServiceWrapper
-
- All Known Implementing Classes:
BaiduMapsServiceWrapper
,CommerceMockGeoWebServiceWrapper
,GoogleMapsServiceWrapper
,MockedGeoServiceWrapper
public interface GeoWebServiceWrapper
Hides communication that resides behind geo-coding and direction fetching
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
formatAddress(Location address)
Formats the address textual information depending on the implementationGPS
geocodeAddress(AddressData address)
Translate AddressData to IGPS using 3rd party serviceGPS
geocodeAddress(Location address)
Translate IAddress to IGPS using 3rd party serviceDistanceAndRoute
getDistanceAndRoute(GPS start, Location dest)
Get distance and route that is between start GPS location and destination addressDistanceAndRoute
getDistanceAndRoute(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
-Location
dest
-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
-GPS
dest
-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
-
-