Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you uncommented this</p> <pre><code>// alert("Geocode was not successful for the following reason: " + status); </code></pre> <p>you would find that the <a href="https://developers.google.com/maps/documentation/javascript/reference#GeocoderStatus">reason code</a> is <code>OVER_QUERY_LIMIT</code> (620).</p> <p>There is a rate limit: if you geocode many addresses without introducing a delay between them you will break that limit because you are doing too many in too short a time.</p> <p>Some of your addresses won't geocode (or won't produce the result you want), because the geocoder uses postal addresses. Addresses like <em>Address East Hampton NY 11937</em> or <em>prop address Westhampton Dunes NY 11978</em> aren't postal addresses.</p> <p>The recommended strategy is not to waste Google's resources which you share with others. Geocode your addresses yourself in a one-off operation, store those locations in your database (or use them directly in code) and then use the coordinates to position markers. Don't bother to find locations you already know about every time the page is loaded. Only use the geocoder to find locations you don't know in advance: addresses entered by your users.</p> <p>If you really must subvert that strategy and geocode everything all the time, then you need to slow the requests down. As you submit more requests, you will probably have to slow them down more to satisfy the geocoder. I've made a Version 3 example (from a noted Version 2 example) at <a href="http://acleach.me.uk/gmaps/v3/plotaddresses.htm">http://acleach.me.uk/gmaps/v3/plotaddresses.htm</a> &mdash; you can see it starts out with a 100ms delay between requests, but needs to slow down to around 150ms after twenty iterations.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload