public class CommerceMockGeoWebServiceWrapper extends Object implements GeoWebServiceWrapper
| Constructor and Description |
|---|
CommerceMockGeoWebServiceWrapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatAddress(Location address)
Formats the address textual information depending on the implementation
|
GPS |
geocodeAddress(AddressData address)
Translate AddressData to IGPS using 3rd party service
|
GPS |
geocodeAddress(Location address)
Translate IAddress to IGPS using 3rd party service
|
protected BaseStoreService |
getBaseStoreService() |
protected Map<String,GPS> |
getCountryIsoGPSLocationMap() |
DistanceAndRoute |
getDistanceAndRoute(GPS start,
Location destination)
Get distance and route that is between start GPS location and destination address
|
DistanceAndRoute |
getDistanceAndRoute(Location start,
Location destination)
Get distance and route that is between two addressess
|
void |
setBaseStoreService(BaseStoreService baseStoreService) |
void |
setCountryIsoGPSLocationMap(Map<String,GPS> countryIsoGPSLocationMap) |
public GPS geocodeAddress(Location address) throws GeoServiceWrapperException
GeoWebServiceWrappergeocodeAddress in interface GeoWebServiceWrapperGeoServiceWrapperExceptionpublic GPS geocodeAddress(AddressData address) throws GeoServiceWrapperException
GeoWebServiceWrappergeocodeAddress in interface GeoWebServiceWrapperGeoServiceWrapperExceptionpublic DistanceAndRoute getDistanceAndRoute(Location start, Location destination) throws GeoServiceWrapperException
GeoWebServiceWrappergetDistanceAndRoute in interface GeoWebServiceWrapperstart - Locationdestination - LocationDistanceAndRouteGeoServiceWrapperExceptionpublic DistanceAndRoute getDistanceAndRoute(GPS start, Location destination) throws GeoServiceWrapperException
GeoWebServiceWrappergetDistanceAndRoute in interface GeoWebServiceWrapperstart - GPSdestination - LocationDistanceAndRouteGeoServiceWrapperExceptionpublic String formatAddress(Location address) throws GeoServiceWrapperException
GeoWebServiceWrapperformatAddress in interface GeoWebServiceWrapperaddress - LocationStringGeoServiceWrapperExceptionprotected BaseStoreService getBaseStoreService()
public void setBaseStoreService(BaseStoreService baseStoreService)
public void setCountryIsoGPSLocationMap(Map<String,GPS> countryIsoGPSLocationMap)
Copyright © 2017 SAP SE. All Rights Reserved.