title: Getting coordinates based on city name google map
body: <p>I am trying to create coordinates based on city with google maps, here is example what i have for now, i always get error?</p>
  
  <pre><code>var address = 'Zurich, Ch';
  
  var geocoder = new google.maps.Geocoder();
  
  geocoder.geocode({
    'address': address
  }, function(results, status) {
    if (status == google.maps.GeocoderStatus.OK) {
      var Lat = results[0].geometry.location.lat();
      var Lng = results[0].geometry.location.lng();
    } else {
      alert("Something got wrong " + status);
    }
  });
  
  var myOptions = {
    zoom: 11,
    center: new google.maps.LatLng(Lat, Lng),
  };
  </code></pre>