title: Joomla2.5 - Not working GClientGeocoder in Google Map v2
body: <p>I am working in joomla 2.5 and I have to create a module for <em>Google map</em> and using <em>Google map api v2</em>. </p>
  
  <p>and I am using  <code>geocoder = new GClientGeocoder();</code> but it is now working</p>
  
  <p>output image:- <img src="https://i.stack.imgur.com/iUUGn.jpg" alt="enter image description here"></p>
  
  <p>My html <code>&lt;div&gt;</code> tag</p>
  
  <pre><code>&lt;div id="map_canvas" style="width: 800px; height:800px;"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>My script</p>
  
  <pre><code>&lt;script&gt;
  
      //&lt;![CDATA[
      var map = null;
      var geocoder = null;
  
      function initialize() {
  
          if (GBrowserIsCompatible()) {
  
          //calls map to appear inside &lt;div&gt; with id, "map_canvas"
          map = new GMap2(document.getElementById("map_canvas"));
  
          //adds zoom and arrow controls to map
  
  
          geocoder = new GClientGeocoder();
  
          map.setMapType(G_SATELLITE_MAP);
  
          var allAddress = "Dubai~Abu Dhabi";
          var addresses = new Array();
          addresses = allAddress.split("~");  
  
  
  
          var curIndex = 0;
  
          function showAddress() {
  
            var _cur = addresses[curIndex];
  
  
            geocoder.getLatLng(
              _cur,
              function(point) {
              alert(_cur);
                if (!point) {
              alert(_cur + " not found");
                } else {
              alert(_cur+":"+point);
  
  
                }
                //do next after done
                curIndex++;
                if(curIndex&lt;addresses.length)
              showAddress();
              }
            );
          }
  
          showAddress();
           }  
  }
  //]]&gt;
  &lt;/script&gt;
  </code></pre>