title: Limitations of snap to road google api v3
body: <p><strong>Update:</strong>
  I have some gps locatiwaon points and i want to draw the path.I the way draw using polylines which dont follow road.I want to do "snap to road",so that i can improve the way path.</p>
  
  <p>I referred this <a href="https://stackoverflow.com/questions/10513360/polyline-snap-to-road-using-google-maps-api-v3">code</a> to snap to road for the locations saved in array "snap_path_points"</p>
  
  <p>I am getting path only for first 8 calls (limitation),below is code</p>
  
  <pre><code>var service = new google.maps.DirectionsService(), poly,snap_path=[];
                poly = new google.maps.Polyline({ map: map });
          for(j=0;j&lt;snap_path_points.length-1;j++){
          service.route({
              origin: snap_path_points[j],
              destination: snap_path_points[j+1],
              travelMode: google.maps.DirectionsTravelMode.DRIVING
            }, function(result, status) {                
              if (status == google.maps.DirectionsStatus.OK) {
                snap_path = snap_path.concat(result.routes[0].overview_path);
                poly.setPath(snap_path);
              }        
            });
          }
  </code></pre>
  
  <p>I divided my locations to batches of 8 and tried the same (i.e if 24 points use 3 for loops ) but i am getting <code>OVER_QUERY_LIMIT</code>.</p>
  
  <p>i wonder how its working with event listener <a href="http://people.missouristate.edu/chadkillingsworth/mapsexamples/snaptoroad.htm" rel="nofollow noreferrer">here</a>.</p>
  
  <blockquote>
    <p>OVER_QUERY_LIMIT indicates the webpage has sent too many requests
    within the allowed time period.</p>
  </blockquote>
  
  <p>Is there anyway to plot complete snap to road path with more than 8 points.</p>