Posted: December 12, 2016 at 4:58 am
Hi all, Our google maps have disappeared from the website. Figured out why – read the forums, got an API key, got some JS console errors, setup the referrer security and now everything is connected properly. However, the Google Map now just appears as a grey box with the error (in the JS Console) of “Google Map geocode was not successful for the following reason: ZERO_RESULTS” Can’t see what I should do within EE to resolve this. Also, confused to why there are zero results when Google has been finding this locations just fine all year. Domain is dee4dogs.co.uk |
|
The only strange thing I can see that in EE it’s storing the “County” as “0” (zero) – these are UK addresses. Should have said. |
|
May I ask what’s set in the Venue editor for the Country value? |
|
United Kingdom – for all the venues. |
|
The County is “0” (zero) |
|
Have you installed the UK locations pack? If not, after you download this zip file, you follow this guide: |
|
No. Installed it now. “Google Map geocode was not successful for the following reason: ZERO_RESULTS” |
|
Correction – ONE venue is now working fine. |
|
May I ask what is the value for county that’s set for the venue that’s working fine, and what are the values for county where the maps are not working? |
|
There are five venues in total. The one that is working correctly is in Leicestershire. Website is http://www.dee4dogs.co.uk |
|
Hi there, The google maps API is a little fussy and can sometimes have unexpected results AND the API results can also be different from the google maps results. (So searching google maps does NOT mean you’ll get the same results on the mini map) I had a look at your events and found the address of one of the venues that doesn’t work (the social centre venue). I then used the full address within https://www.google.co.uk/maps and get the zero_results error there. zero_results means google maps did not throw an error but could not find anything that matches the address passed to it. In the case of the social centre to get a result I needed to remove what you have set as the address line 1 and use the remaining details, this returns a result close to the centre but the API does not recognize the full address to place a pinout on the centre itself. So to fix the vnuew you’ll need to find the best combination of address details for each venue that work with the mini map. There isn’t much we can do to fix this as its googles results for the address passed to it that is breaking, not EE. However we are looking into adding lat and longitude fields to the address to help with this in a future version of EE. I know the above is not ideal and we are not dismissing the problem, however we are a little limited on what we can do currently. |
|
Understood. I was digging through the Google API documentation, and was thinking along similar lines. Thanks for your help. I guess it will be a bit of trial and error. Thanks. |
|
You’re most welcome, I’m in the UK too so I know it can be sometimes be a pain to get the correct location through the API. You may find it a little quicker to alter the address here: https://developers.google.com/maps/documentation/geocoding/intro#ReverseGeocoding Until you find a combination that works, then input whatever works into the relevant fields for the venue in EE. |
|
Sorted. Thankfully we don’t have many venues. We look forward to your lat/long update. |
|
The support post ‘Google Maps API’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.