title: Google Maps Api Fusion Table select geometry where name equals variable
body: <p>Basically I want to pass the inputValue variable into the fusion table query to find the geometry where the value of column 'Name' equals inputValue.</p>
  
  <p>I just need to know how this should be written. Any help would be greatly appreciated. Code Below:</p>
  
  <pre><code>jQuery(document).ready(function($) {
  
  //   function init() {
  
  var baseLatLng = new google.maps.LatLng(52.7713,-1.5550);
  var newLatLng;
  
  var map = new google.maps.Map(document.getElementById('map'), {
      zoom: 12,
      center: baseLatLng
  });
  
  var searchOptions = {
      center: baseLatLng,
      mapTypeID: 'roadmap',
      componentRestrictions: {country: "uk"}
  };
  
  var input = document.getElementById('search');
  
  var autocomplete = new google.maps.places.Autocomplete(input, searchOptions);
  
  var inputValue = document.getElementById('search').value;
  
  var geocoder = new google.maps.Geocoder();
  
  $("#go").click(function(event) {
      event.preventDefault();
      geocodeAddress(geocoder);
      layer.setMap(map);
  
  });
  
  
  function geocodeAddress(geocoder) {
      var address = document.getElementById('search').value;
      geocoder.geocode({address: address, region: 'uk'}, function(results, status) {
          if (status === 'OK') {
          } else {
              alert('Geocode was not successful for the following reason: ' + status);
          }
          var latitude = results[0].geometry.location.lat();
          var longitude = results[0].geometry.location.lng()
          newLatLng = latitude + ',' + longitude;
          document.getElementById('results').innerHTML = "latitude:" + latitude + "&lt;br&gt;" + "longitude:" + longitude;
  
      });
  }
  
  var layer = new google.maps.FusionTablesLayer({
      query: {
          select: 'Geometry',
          from: 'xxxx',
          where: "'Name' = inputValue" ---HERE!
      },
      styles: [{
          polygonOptions: {
              fillColor: '#00FF00',
              fillOpacity: 0.3
          }
      }]
  });
  });
  </code></pre>
  
  <p>Thanks,
  Ollie</p>