title: change Google maps API language
body: <p>I'm using Azure platform to develop a website.
  I'm using in Google maps API to get my location.
  The server side is written in C#
  I want that Google return the answer in English and not in other language.
  How can I do this?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false" lang="en-us"&gt;&lt;/script&gt; 
  &lt;script type="text/javascript"&gt;
      var geocoder;
  
      if (navigator.geolocation) {
          navigator.geolocation.getCurrentPosition(successFunction, errorFunction);
      }
      //Get the latitude and the longitude;
      function successFunction(position) {
          var lat = position.coords.latitude;
          var lng = position.coords.longitude;
          codeLatLng(lat, lng)
      }
  
      function errorFunction() {
          alert("Geocoder failed");
      }
  
      function initialize() {
          geocoder = new google.maps.Geocoder();
  
  
  
      }
  
      function codeLatLng(lat, lng) {
  
          var latlng = new google.maps.LatLng(lat, lng);
          geocoder.geocode({ 'latLng': latlng }, function (results, status) {
              if (status == google.maps.GeocoderStatus.OK) {
                  console.log(results)
                  if (results[1]) {
                      //formatted address
                      //alert(results[0].formatted_address)
                      document.getElementById('&lt;%= citylbl.ClientID %&gt;').value = results[0].formatted_address;
                      //find country name
                      for (var i = 0; i &lt; results[0].address_components.length; i++) {
                          for (var b = 0; b &lt; results[0].address_components[i].types.length; b++) {
  
                              //there are different types that might hold a city admin_area_lvl_1 usually does in come cases looking for sublocality type will be more appropriate
                              if (results[0].address_components[i].types[b] == "administrative_area_level_1") {
                                  //this is the object you are looking for
                                  city = results[0].address_components[i];
                                  break;
                              }
                          }
                      }
                      //city data
                      //alert(city.short_name+" " + city.long_name);
  
  
                  } else {
                      alert("No results found");
                  }
              } else {
                  alert("Geocoder failed due to: " + status);
              }
          });
      }
  &lt;/script&gt; 
  &lt;/head&gt;
  &lt;body onload="initialize()"&gt;
  &lt;asp:HiddenField ID="citylbl" runat="server" /&gt;
    &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>