Skip to Content
0
Former Member
Oct 12, 2015 at 02:44 PM

GoogleApiKey not used in GoogleMapTools

330 Views

Hi

We realised that when using the DefaultStoreFinderService the underlying Google Geocode Api Call made by the de.hybris.platform.storelocator.impl.GoogleMapTools.class doesn't use the configured "googleApiKey" and we therefore often receive the following Response for the REST Call in GoogleMapTools.geocodeAddress(addressData)

 <?xml version="1.0" encoding="UTF-8"?>
 <GeocodeResponse>
  <status>OVER_QUERY_LIMIT</status>
  <error_message>You have exceeded your daily request quota for this API. We recommend registering for a key at the Google Developers Console: https://console.developers.google.com/</error_message>
 </GeocodeResponse>

How can we make sure that the configured googleApiKey (set in project.properties as described here https://wiki.hybris.com/display/accdoc/Store+Locator+Configuration#StoreLocatorConfiguration-StorefrontAPIKeyConfiguration) is used in that case?

We're running hybris 5.2