Package de.hybris.platform.storelocator
Interface GeoWebServiceWrapper
- All Known Implementing Classes:
BaiduMapsServiceWrapper,CommerceMockGeoWebServiceWrapper,GoogleMapsServiceWrapper,MockedGeoServiceWrapper,MockedGeoServiceWrapper
public interface GeoWebServiceWrapper
Hides communication that resides behind geo-coding and direction fetching
-
Method Summary
Modifier and TypeMethodDescriptionformatAddress(Location address) Formats the address textual information depending on the implementationgeocodeAddress(AddressData address) Translate AddressData to IGPS using 3rd party servicegeocodeAddress(Location address) Translate IAddress to IGPS using 3rd party servicegetDistanceAndRoute(GPS start, Location dest) Get distance and route that is between start GPS location and destination addressgetDistanceAndRoute(Location start, Location dest) Get distance and route that is between two addresses
-
Method Details
-
geocodeAddress
Translate IAddress to IGPS using 3rd party service- Parameters:
address-- Returns:
- IGPS
- Throws:
GeoServiceWrapperException
-
geocodeAddress
Translate AddressData to IGPS using 3rd party service- Parameters:
address-- Returns:
- IGPS
- Throws:
GeoServiceWrapperException
-
getDistanceAndRoute
Get distance and route that is between two addresses- Parameters:
start-Locationdest-Location- Returns:
DistanceAndRoute- Throws:
GeoServiceWrapperException
-
getDistanceAndRoute
Get distance and route that is between start GPS location and destination address- Parameters:
start-GPSdest-Location- Returns:
DistanceAndRoute- Throws:
GeoServiceWrapperException
-
formatAddress
Formats the address textual information depending on the implementation- Parameters:
address-Location- Returns:
String- Throws:
GeoServiceWrapperException
-