• Resolved Anonymous User 16148154

    (@anonymized-16148154)


    Hello,

    When using your plugin on our website we get a lot of these error logs:

    [26-Apr-2018 16:27:25 UTC] FlxMapPlugin::getAddressCoordinates: address: 390 Forsgate Dr, Monroe Township, NJ 08831, USA; error retrieving address: OVER_QUERY_LIMIT

    These show up a few times per day. The API request limit on google is 25k/day, it is impossible that we actually reach that. Our monthly peak is 1k visitors / day, with an average around 200 visitors/day, of which only a small fraction visits pages that use flexible map.

    I’m wondering – why does the plugin resolve addresses on the server side at all?
    Any help would be much appreciated!

    Best regards

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author webaware

    (@webaware)

    G’day,

    It’s resolving on the server side so that it doesn’t resolve it in the browser each time the page is viewed. It should not need to resolve on the server side more than once per week. The result is stored in a transient for a week.

    If your site is clearing all transients before they expire, you might get this problem. That might happen if you have an object cache (memcached / redis / etc.) and it’s being used beyond its capacity, and has to dump old objects before they expire. It can also happen if you use W3 Total Cache and enable one of its settings (something about object caching, which basically borks object caching and especially transients).

    cheers,
    Ross

    Plugin Author webaware

    (@webaware)

    Actually, my apologies… I think this reflects a change in Google policy about API keys. I’m going to have to start sending the API key for all address queries by the looks of it. New version coming, maybe this month.

    cheers,
    Ross

    Plugin Author webaware

    (@webaware)

    I have added an additional API key setting for server side queries. Please try it out:

    https://www.dropbox.com/s/3ieytpjrks6gd00/wp-flexible-map-1.14.0-dev.zip?dl=1

    If you don’t set the Server API key, it won’t do server side queries. If you do, it will use that key for server side queries.

    If your API key has no restrictions, you will be able to use the same key for both JavaScript and Server API key.

    NB: you should have restrictions on your key, otherwise people can copy your key (from the browser) and use it on their website. This means you will need a second key, either unrestricted or restricted by IP address, for the server side queries. More doco coming 🙂

    cheers,
    Ross

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error retrieving address: OVER_QUERY_LIMIT’ is closed to new replies.