Class GoogleMapsServiceWrapper
java.lang.Object
de.hybris.platform.storelocator.impl.GoogleMapsServiceWrapper
- All Implemented Interfaces:
GeoWebServiceWrapper
Wrapper that performs communication with google geo-location services.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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 destination) Get distance and route that is between start GPS location and destination addressgetDistanceAndRoute(Location start, Location destination) Get distance and route that is between two addressesprotected GoogleMapToolsgetMapTools(String url) voidsetGoogleMapTools(GoogleMapTools googleMapTools)
-
Field Details
-
GOOGLE_MAPS_URL
- See Also:
-
GOOGLE_GEOCODING_URL
- See Also:
-
-
Constructor Details
-
GoogleMapsServiceWrapper
public GoogleMapsServiceWrapper()
-
-
Method Details
-
getMapTools
-
geocodeAddress
Description copied from interface:GeoWebServiceWrapperTranslate IAddress to IGPS using 3rd party service- Specified by:
geocodeAddressin interfaceGeoWebServiceWrapper- Returns:
- IGPS
- Throws:
GeoServiceWrapperException
-
geocodeAddress
Description copied from interface:GeoWebServiceWrapperTranslate AddressData to IGPS using 3rd party service- Specified by:
geocodeAddressin interfaceGeoWebServiceWrapper- Returns:
- IGPS
- Throws:
GeoServiceWrapperException
-
getDistanceAndRoute
public DistanceAndRoute getDistanceAndRoute(Location start, Location destination) throws GeoServiceWrapperException Description copied from interface:GeoWebServiceWrapperGet distance and route that is between two addresses- Specified by:
getDistanceAndRoutein interfaceGeoWebServiceWrapper- Parameters:
start-Locationdestination-Location- Returns:
DistanceAndRoute- Throws:
GeoServiceWrapperException
-
formatAddress
Description copied from interface:GeoWebServiceWrapperFormats the address textual information depending on the implementation- Specified by:
formatAddressin interfaceGeoWebServiceWrapper- Parameters:
address-Location- Returns:
String- Throws:
GeoServiceWrapperException
-
getDistanceAndRoute
public DistanceAndRoute getDistanceAndRoute(GPS start, Location destination) throws GeoServiceWrapperException 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- Throws:
GeoServiceWrapperException
-
setGoogleMapTools
-