title: How to access google maps api in China
body: <p>I am using google maps api to get user location in my IBM Mobilefirst project and it is working fine as expected in all the countries except china.I know this is because china has blocked access to google apis in their country.Is there any workaround that I can make so that the application works even in china. I have given the code snippet below for reference.</p>
  
  <p>This is the script I have in head </p>
  
  <pre><code> &lt;script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBaKx9iQrPQuOmAc2DkMRgjFdT0_XTdbmE&amp;sensor=false&amp;v=3&amp;libraries=geometry"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>javascript code</p>
  
  <pre><code>function getLocation() {
      busy = new WL.BusyIndicator ();
      busy.show();
      if (navigator.geolocation) {
  
          navigator.geolocation.getCurrentPosition(showPosition, showError,options);
      } else { 
          alert( "Geolocation is not supported");}
      }
  
  function showPosition(pos) {
  
      var geocoder = new google.maps.Geocoder();
      var latlng = new google.maps.LatLng(pos.coords.latitude,pos.coords.longitude);
      latitude=pos.coords.latitude;
      longitude=pos.coords.longitude;
      geocoder.geocode({ 'latLng': latlng }, function (results, status) {
          if (status == google.maps.GeocoderStatus.OK) {
              var addresscomponent=results[0].address_components;
              var addresslength=addresscomponent.length;
              for(var i=0;i&lt;addresslength;i++){
                  if(addresscomponent[i].types[0]=='country'){
                      countryname=addresscomponent[i].short_name;
                  }
                  else if(addresscomponent[i].types[0]=='locality'){
                      cityname=addresscomponent[i].short_name;
                  }
              }
  }
  
  function showError(error) {
      alert(error);
      busy.hide(); 
         }
  </code></pre>