Open Decipher-Webmaster opened 3 years ago
I had the same issue, but my problem was in the configuration of the Google API key used for the Geocoding API. The value of the "Application restrictions" was set to "HTTP referrers (web sites)" which means Craft CMS could not reach it (as a server). When you set it to "None" or "IP adresses (web servers, cron jobs, etc)", then Craft CMS is also possible to connect to the API.
I would expect though that SimpleMap would output some error logs on failures, but I couldn't find any in the logs of Craft CMS.
We have just run into this issue, problem is (please correct me if i'm wrong @Tam) but we can't currently work around it.
If you want to restrict access to the key (pretty important) then you have to set restrictions by either IP (for server side php requests) and referrer (client side js requests).
This requires two keys one for server side and one for client side and maps currently uses the same key for both, as a result we can't add restrictions if we want both to work, which we really need to do please.
Description
When carrying out a proximity search using an address string, no results are returned. However, when searching using co-ordinates, results are returned as expected. Here is an example snippet of the query I'm trying to implement:
The plugin is configured using 'Google Maps: Terrain' as the Map Style and 'Google Maps' as the GeoService. Both are confirmed to be working correctly via the Google Cloud Platform. When searching a comma-separated town & post code identical to that set in some example entries maps field, no results are returned. When searching the equivalent co-ordinates, all expected results are returned.
Steps to reproduce
location
parameter set to an address string.Additional info