title: Error when running Google Places Autocomplete API
body: <p>I'm new to the Google Places Autocomplete API, and to development in general but I'm hoping someone can help point me in the right direction.  I've reviewed the Google Places documentation and example.  In trying to duplicate Google's example in order to gain a better understanding (http://code.google.com/apis/maps/documentation/javascript/examples/places-autocomplete.html), I receive the following error when I run it:</p>
  
  <p>"The Google Maps API server rejected your request.  The "sensor" parameter specified in the request must be set to either "true" or "false"."</p>
  
  <p>What's maddening is I do have "sensor" set to "false"!  Please see below for the full page code.  Any advice would be greatly appreciated.</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Google Maps JavaScript API v3 Example: Places Autocomplete&lt;/title&gt;
      &lt;script src="https://maps.googleapis.com/maps/api/js?sensor=false&amp;libraries=places"
        type="text/javascript"&gt;&lt;/script&gt;
  
      &lt;style type="text/css"&gt;
        body {
          font-family: sans-serif;
          font-size: 14px;
        }
        #map_canvas {
          height: 400px;
          width: 600px;
          margin-top: 0.6em;
        }
      &lt;/style&gt;
  
      &lt;script type="text/javascript"&gt;
          function initialize() {
              var mapOptions = {
                  center: new google.maps.LatLng(-33.8688, 151.2195),
                  zoom: 13,
                  mapTypeId: google.maps.MapTypeId.ROADMAP
              };
              var map = new google.maps.Map(document.getElementById('map_canvas'),
            mapOptions);
  
              var input = document.getElementById('searchTextField');
              var autocomplete = new google.maps.places.Autocomplete(input);
  
              autocomplete.bindTo('bounds', map);
  
              var infowindow = new google.maps.InfoWindow();
              var marker = new google.maps.Marker({
                  map: map
              });
  
              google.maps.event.addListener(autocomplete, 'place_changed', function () {
                  infowindow.close();
                  var place = autocomplete.getPlace();
                  if (place.geometry.viewport) {
                      map.fitBounds(place.geometry.viewport);
                  } else {
                      map.setCenter(place.geometry.location);
                      map.setZoom(17);  // Why 17? Because it looks good.
                  }
  
                  var image = new google.maps.MarkerImage(
                place.icon,
                new google.maps.Size(71, 71),
                new google.maps.Point(0, 0),
                new google.maps.Point(17, 34),
                new google.maps.Size(35, 35));
                  marker.setIcon(image);
                  marker.setPosition(place.geometry.location);
  
                  var address = '';
                  if (place.address_components) {
                      address = [(place.address_components[0] &amp;&amp;
                          place.address_components[0].short_name || ''),
                         (place.address_components[1] &amp;&amp;
                          place.address_components[1].short_name || ''),
                         (place.address_components[2] &amp;&amp;
                          place.address_components[2].short_name || '')
                        ].join(' ');
                  }
  
                  infowindow.setContent('&lt;div&gt;&lt;strong&gt;' + place.name + '&lt;/strong&gt;&lt;br&gt;' + address);
                  infowindow.open(map, marker);
              });
  
              // Sets a listener on a radio button to change the filter type on Places
              // Autocomplete.
              function setupClickListener(id, types) {
                  var radioButton = document.getElementById(id);
                  google.maps.event.addDomListener(radioButton, 'click', function () {
                      autocomplete.setTypes(types);
                  });
              }
  
              setupClickListener('changetype-all', []);
              setupClickListener('changetype-establishment', ['establishment']);
              setupClickListener('changetype-geocode', ['geocode']);
          }
          google.maps.event.addDomListener(window, 'load', initialize);
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div&gt;
        &lt;input id="searchTextField" type="text" size="50"&gt;
        &lt;input type="radio" name="type" id="changetype-all" checked="checked"&gt;
        &lt;label for="changetype-all"&gt;All&lt;/label&gt;
  
        &lt;input type="radio" name="type" id="changetype-establishment"&gt;
        &lt;label for="changetype-establishment"&gt;Establishments&lt;/label&gt;
  
        &lt;input type="radio" name="type" id="changetype-geocode"&gt;
        &lt;label for="changetype-geocode"&gt;Geocodes&lt;/label&gt;
      &lt;/div&gt;
      &lt;div id="map_canvas"&gt;&lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>