title: Can I reduce my amount of requests in Google Maps JavaScript API v3?
body: <p>I call 2 locations. From an xml file I get the longtitude and the langtitude of a location. First the closest cafe, then the closest school. </p>
  
  <pre><code>$.get('https://maps.googleapis.com/maps/api/place/nearbysearch/xml?
  location='+home_latitude+','+home_longtitude+'&amp;rankby=distance&amp;types=cafe&amp;sensor=false&amp;key=X',function(xml)
  {
  verander($(xml).find("result:first").find("geometry:first").find("location:first").find("lat").text(),$(xml).find("result:first").find("geometry:first").find("location:first").find("lng").text());
  }
  );
  
  $.get('https://maps.googleapis.com/maps/api/place/nearbysearch/xml?
  location='+home_latitude+','+home_longtitude+'&amp;rankby=distance&amp;types=school&amp;sensor=false&amp;key=X',function(xml)
  {
  verander($(xml).find("result:first").find("geometry:first").find("location:first").find("lat").text(),$(xml).find("result:first").find("geometry:first").find("location:first").find("lng").text());
  }
  );
  </code></pre>
  
  <p>But as you can see, I do the function verander(latitude,longtitude) twice. </p>
  
  <pre><code>function verander(google_lat, google_lng)
    {
          var bryantPark = new google.maps.LatLng(google_lat, google_lng);
          var panoramaOptions = 
          {
              position:bryantPark,
              pov:
              {
                  heading: 185,
                  pitch:0,
                  zoom:1,
              },
              panControl : false,
              streetViewControl : false,
              mapTypeControl: false,
              overviewMapControl: false   ,
              linksControl: false,
              addressControl:false,
              zoomControl : false,
          }
          map = new google.maps.StreetViewPanorama(document.getElementById("map_canvas"), panoramaOptions);
          map.setVisible(true);
    }
  </code></pre>
  
  <p>Would it be possible to push these 2 locations in only one request(perhaps via an array)? I know it sounds silly but I really want to know if their isn't a backdoor to reduce these google maps requests.</p>
  
  <p>FTR: This is what a request is for Google:</p>
  
  <h2>What constitutes a 'map load' in the context of the usage limits that apply to the Maps API? A single map load occurs when:</h2>
  
  <ul>
  <li><p>a. a map is displayed using the Maps JavaScript API (V2 or V3) when loaded by a web page or application;</p></li>
  <li><p>b.    a Street View panorama is displayed using the Maps JavaScript API (V2 or V3) by a web page or application that has not also displayed a map;</p></li>
  <li><p>c.    a SWF that loads the Maps API for Flash is loaded by a web page or application;</p></li>
  <li><p>d.    a single request is made for a map image from the Static Maps API.</p></li>
  <li><p>e.    a single request is made for a panorama image from the Street View Image API.</p></li>
  </ul>
  
  <p>So I'm afraid it isn't possible, but hey, suggestions are always welcome!</p>