title: Google Maps AutoComplete API - Listener for start and destination
body: <p>I am working on a google maps application and tried to implement the autocomplete API.
  It is working for 1 textfield.</p>
  
  <p>Is it possible to add the same for the destinationfield without copying the code?
  I added the listener as in the documentation
  <a href="https://developers.google.com/maps/documentation/javascript/places" rel="nofollow">https://developers.google.com/maps/documentation/javascript/places</a></p>
  
  <p>Here is the listener for the changed event,
  but I don't know, if I can bind it for 2 textfields..</p>
  
  <pre><code>google.maps.event.addListener(autocompleteStart, 'place_changed', function() {
     //...
  )};
  </code></pre>