public class DefaultGeolocationDirectionsUrlBuilder extends Object implements GeolocationDirectionsUrlBuilder
| Constructor and Description |
|---|
DefaultGeolocationDirectionsUrlBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
addressData2String(AddressData addressData) |
protected String |
formatCoordinates(GPS coordinates) |
protected String |
getMode() |
protected String |
getResponseType() |
String |
getWebServiceUrl(String baseUrl,
AddressData startAddress,
AddressData destinationAddress,
Map params)
Builds url for web service serving directions from start address to destination address.
|
String |
getWebServiceUrl(String baseUrl,
GPS start,
GPS destination,
Map params)
Builds url for web service serving directions from start coordinates to destination coordinates.
|
protected boolean |
isSensor() |
void |
setApiKey(String apiKey)
Deprecated.
|
void |
setMode(String mode) |
void |
setResponseType(String responseType) |
void |
setSensor(boolean sensor) |
public DefaultGeolocationDirectionsUrlBuilder()
public String getWebServiceUrl(String baseUrl, GPS start, GPS destination, Map params)
GeolocationDirectionsUrlBuildergetWebServiceUrl in interface GeolocationDirectionsUrlBuilderbaseUrl - - base address of the web serviceparams - additional parameters.public String getWebServiceUrl(String baseUrl, AddressData startAddress, AddressData destinationAddress, Map params)
GeolocationDirectionsUrlBuildergetWebServiceUrl in interface GeolocationDirectionsUrlBuilderbaseUrl - - base address of the web serviceparams - additional parameters.protected String getMode()
protected boolean isSensor()
protected String getResponseType()
public void setSensor(boolean sensor)
sensor - the sensor to set@Deprecated public void setApiKey(String apiKey)
public void setMode(String mode)
mode - the mode to setpublic void setResponseType(String responseType)
responseType - the responseTpe to setprotected String addressData2String(AddressData addressData) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2017 SAP SE. All Rights Reserved.