title: How to get Latitude Longitude from more than 500 addresses?
body: <p>I have more than 700 addresses in database.
  I want to plot them region wise.
  I have implement this code : </p>
  
  <pre><code>public LatLng getSingleLocationFromAddress(String strAddress)
  {
      Geocoder coder = new Geocoder(this, Locale.getDefault());
      List&lt;Address&gt; address = null;
      Address location = null;
      GeoPoint p1 = null;
      LatLng temp = null;//new LatLng(26.0000, 121.0000);
      String strAddresNew = strAddress.replace(",", " ");
      try
      {
          address = coder.getFromLocationName(strAddresNew, 1);
          if (!address.isEmpty())
          {
              location = address.get(0);
              location.getLatitude();
              location.getLongitude();
              temp = new LatLng(location.getLatitude(), location.getLongitude());
              Log.d("Latlng : ", temp + "");
          } else
          {
              arrTemp.add(strAddress);
              System.out.println(arrTemp);
          }
      } catch (IOException e)
      {
          Toast.makeText(mContext, e.toString(), Toast.LENGTH_LONG).show();
          e.printStackTrace();
      } catch (Exception e)
      {
          e.printStackTrace();
      }
      return temp;
  }
  </code></pre>
  
  <p>But the problem is when I call this method in loop like this: </p>
  
  <pre><code>Marker TP1 = googleMap.addMarker(new MarkerOptions().position(getSingleLocationFromAddress(fullAddress)));
  </code></pre>
  
  <p>The line <code>coder.getFromLocationName(strAddresNew, 1);</code> returns null for some addresses, for example if I have an <code>ArrayList</code> of 7 addresses then I get only 4-5 LatLong values.</p>