Home›Toolset Professional Support›[Resolved] With Toolset Maps caching of coordinates, does displaying maps still count towards Google API use?
[Resolved] With Toolset Maps caching of coordinates, does displaying maps still count towards Google API use?
This thread is resolved. Here is a description of the problem and solution.
Problem:
With Toolset Maps caching of coordinates, does displaying maps still count towards Google API use?
Solution:
Yes, though caching of locations reduces the requests, it doesn't eliminate them, and Google still counts drawing dynamic maps with markers towards your API usage.
This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Our customer (historyinyourownbackyard.com) is running into issues where he's exceeding the new threshold Google threw at us out of nowhere, and his site is starting to display the over-quota error message. Shouldn't caching help prevent him from hitting the 28,000 limit? It does appear all his map points are cached, but he's still exceeding the threshold?
I updated his key to a new one, so the error is gone at the moment, but we are still wanting a better understanding of the caching situation. It seems like it should only hit Google rarely with caching?
Also, have you guys considered integrating with leaflet, since it's an opensource/free system?
The caching mechanism reduces requests but it doesn't eliminate them, by any means.
When you enter an address the coordinates are looked up and cached, and these cached coordinates are used when filtering by distance, for example, and when maps are displayed these coordinates are used for the markers rather than addresses, which would need converting to coordinates, but dynamic maps still count as hits on the API for every page visit.
The only alternative is to create static maps, to create maps with required markers directly in Google and then embed these static maps on your site, there are no API implications from doing this.
When Google announced the pending price increases we added support for Microsoft Azure maps which has more generous/cheaper allowances, though you would need to verify and monitor that for yourself.
We have plans to add OpenStreetMap as a source (which leaflet uses), but no fixed timetable for when work on that will begin, so I can't give you any estimates I'm afraid.