java.lang.Object
de.hybris.platform.chinesestoreservices.map.impl.BaiduMapTools

public class BaiduMapTools extends Object
The Spring Bean that performs the geo-location HTTP requests towards Baidu Maps Service
  • Constructor Details

    • BaiduMapTools

      public BaiduMapTools()
  • Method Details

    • geocodeAddress

      public GPS geocodeAddress(AddressData addressData)
      geo-codes the given address data
      Parameters:
      addressData - the address to geocode
      Returns:
      the calculated GPS
      Throws:
      GeoServiceWrapperException
    • getUrlAddressFromAddress

      protected String getUrlAddressFromAddress(AddressData addressData)
    • getLocationFromService

      protected MapLocationData getLocationFromService(String urlAddress)
    • encodeUrl

      protected URI encodeUrl(String address)
    • geocodeAddress

      public GPS geocodeAddress(Location address)
      geo-codes the given location
      Parameters:
      address - the address to geocode
      Returns:
      the GPS of the given address
      Throws:
      GeoServiceWrapperException
    • getAddressQuery

      public String getAddressQuery(AddressData addressData)
      parses the given address data
      Parameters:
      addressData - the address to parse
      Returns:
      parsed address string
    • appendBusinessParams

      protected String appendBusinessParams(String urlAddress)
    • getGeoParsersMap

      protected Map getGeoParsersMap()
      Returns:
      the parsersMap
    • setGeoParsersMap

      public void setGeoParsersMap(Map parsersMap)
      Parameters:
      parsersMap - the parsersMap to set
    • getResponseExtractor

      protected org.springframework.web.client.ResponseExtractor getResponseExtractor(Map<String,org.springframework.web.client.ResponseExtractor> parsersMap)
    • setBaseUrl

      public void setBaseUrl(String baseUrl)
    • getBaseUrl

      protected String getBaseUrl()
    • setOutput

      public void setOutput(String output)
    • getOutput

      protected String getOutput()
    • setBaiduKey

      public void setBaiduKey(String key)
    • getBaiduKey

      protected String getBaiduKey()