title: Google Maps API Autocomplete - How to output only the Streetname?
body: <p>I have a input field, where only addresses return.</p>
  
  <p>But when i enter a streetname, the input field return the streetname plus a comma and the city of the street.</p>
  
  <p>I got following code: </p>
  
  <pre><code>&lt;script src="http://maps.google.com/maps/api/js?libraries=places&amp;region=de&amp;language=de&amp;sensor=false"&gt;&lt;/script&gt;
  &lt;input id="strasse" type="text" size="50"&gt;
  
   $(function(){     
  
      var input = document.getElementById('strasse');         
      var autocomplete = new google.maps.places.Autocomplete(input, {
          types: ["address"]
      });          
  
      $("#strasse").focusin(function () {
          $(document).keypress(function (e) {
              if (e.which == 13) {
                  infowindow.close();
  
              }
          });
      });
  });
  </code></pre>
  
  <p>EG:</p>
  
  <p>I enter "Teststreet"
  Output = "Teststreet, Munich"</p>
  
  <p>The return should only be "Teststreet".</p>
  
  <p>Is there a way, to delete everything after the "," (maybe over jQuery)?</p>