title: Getting street name from Address/Location object in Android
body: <p>I'm trying to get the street name of my current location but I can't seem to get it.</p>
  
  <p>I use this method to retrieve the Address:</p>
  
  <pre><code>public Address getAddressForLocation(Context context, Location location) throws IOException {
  
          if (location == null) {
              return null;
          }
          double latitude = location.getLatitude();
          double longitude = location.getLongitude();
          int maxResults = 1;
  
          Geocoder gc = new Geocoder(context, Locale.getDefault());
          List&lt;Address&gt; addresses = gc.getFromLocation(latitude, longitude, maxResults);
  
          if (addresses.size() == 1) {
              return addresses.get(0);
          } else {
              return null;
          }
      }
  </code></pre>
  
  <p>And then I can do things like. <code>address.getLocality()</code> and <code>address.getPostalCode()</code></p>
  
  <p>But what I want is the street name. Like in "Potterstreet 12". When I print the AddressLine(0) and AddressLine(1) I only get the postalcode, city and country.</p>
  
  <p>How can I retrieve the street name of the position i'm currently at?</p>