title: How to get only City, State, Country from lat, long in android
body: <p>I have the below code to convert lat, long to human readable address. Now iam getting full details including street name. How can i get only city, state, country? I don't want anything more details.  Please help me. </p>
  
  <pre><code>Geocoder geoCoder = new Geocoder(getBaseContext(), Locale.getDefault());
  try {
     List&lt;Address&gt; addresses = geoCoder.getFromLocation(latitude, longitude, 1);
  
     String add = "";
     if (addresses.size() &gt; 0) 
     {
        for (int i=0; i&lt;addresses.get(0).getMaxAddressLineIndex();i++)
       add += addresses.get(0).getAddressLine(i) + "\n";
     }
  
     showToastMessage(add);
  }
  catch (IOException e1) {                
     e1.printStackTrace();
  }   
  </code></pre>