Class BaiduMapTools
java.lang.Object
de.hybris.platform.chinesestoreservices.map.impl.BaiduMapTools
The Spring Bean that performs the geo-location HTTP requests towards Baidu Maps Service
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringappendBusinessParams(String urlAddress) protected URIgeocodeAddress(AddressData addressData) geo-codes the given address datageocodeAddress(Location address) geo-codes the given locationgetAddressQuery(AddressData addressData) parses the given address dataprotected Stringprotected Stringprotected Mapprotected MapLocationDatagetLocationFromService(String urlAddress) protected Stringprotected org.springframework.web.client.ResponseExtractorgetResponseExtractor(Map<String, org.springframework.web.client.ResponseExtractor> parsersMap) protected StringgetUrlAddressFromAddress(AddressData addressData) voidsetBaiduKey(String key) voidsetBaseUrl(String baseUrl) voidsetGeoParsersMap(Map parsersMap) void
-
Constructor Details
-
BaiduMapTools
public BaiduMapTools()
-
-
Method Details
-
geocodeAddress
geo-codes the given address data- Parameters:
addressData- the address to geocode- Returns:
- the calculated GPS
- Throws:
GeoServiceWrapperException
-
getUrlAddressFromAddress
-
getLocationFromService
-
encodeUrl
-
geocodeAddress
geo-codes the given location- Parameters:
address- the address to geocode- Returns:
- the GPS of the given address
- Throws:
GeoServiceWrapperException
-
getAddressQuery
parses the given address data- Parameters:
addressData- the address to parse- Returns:
- parsed address string
-
appendBusinessParams
-
getGeoParsersMap
- Returns:
- the parsersMap
-
setGeoParsersMap
- Parameters:
parsersMap- the parsersMap to set
-
getResponseExtractor
-
setBaseUrl
-
getBaseUrl
-
setOutput
-
getOutput
-
setBaiduKey
-
getBaiduKey
-