title: Google Maps API - position/center by keyword (city name)
body: <p>In my web application I am using the gmap javascript API (<a href="https://developers.google.com/maps/documentation/javascript/" rel="noreferrer">https://developers.google.com/maps/documentation/javascript/</a> ). I am using the code below inside a function to position/center the gmap once a user has pressed a button.</p>
  
  <pre><code>var position = new google.maps.LatLng(lat, lng);
  map.setCenter(position);
  </code></pre>
  
  <p>This code uses the latitude and longitude. Instead of the latitude and longitude I would like to position/center the gmap based on a given keyword. For example, how can I position/center the gmap if the input is 'Paris'?</p>