Class DefaultGeolocationDirectionsUrlBuilder
java.lang.Object
de.hybris.platform.storelocator.route.impl.DefaultGeolocationDirectionsUrlBuilder
- All Implemented Interfaces:
GeolocationDirectionsUrlBuilder
public class DefaultGeolocationDirectionsUrlBuilder
extends Object
implements GeolocationDirectionsUrlBuilder
Builds GET directions URL according to google maps API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringaddressData2String(AddressData addressData) protected StringformatCoordinates(GPS coordinates) protected StringgetMode()protected StringgetWebServiceUrl(String baseUrl, AddressData startAddress, AddressData destinationAddress, Map params) Builds url for web service serving directions from start address to destination address.getWebServiceUrl(String baseUrl, GPS start, GPS destination, Map params) Builds url for web service serving directions from start coordinates to destination coordinates.protected booleanisSensor()voidvoidsetResponseType(String responseType) voidsetSensor(boolean sensor)
-
Constructor Details
-
DefaultGeolocationDirectionsUrlBuilder
public DefaultGeolocationDirectionsUrlBuilder()
-
-
Method Details
-
getWebServiceUrl
Description copied from interface:GeolocationDirectionsUrlBuilderBuilds url for web service serving directions from start coordinates to destination coordinates.- Specified by:
getWebServiceUrlin interfaceGeolocationDirectionsUrlBuilder- Parameters:
baseUrl- - base address of the web serviceparams- additional parameters.
-
getWebServiceUrl
public String getWebServiceUrl(String baseUrl, AddressData startAddress, AddressData destinationAddress, Map params) Description copied from interface:GeolocationDirectionsUrlBuilderBuilds url for web service serving directions from start address to destination address.- Specified by:
getWebServiceUrlin interfaceGeolocationDirectionsUrlBuilder- Parameters:
baseUrl- - base address of the web serviceparams- additional parameters.
-
getMode
-
isSensor
protected boolean isSensor() -
getResponseType
-
formatCoordinates
-
setSensor
public void setSensor(boolean sensor) -
setMode
-
setResponseType
-
addressData2String
- Throws:
UnsupportedEncodingException
-