title: Get nearly locations by query in Android using Geocoder?
body: <p>I want to implement search suggestions similar to Google Maps ones.
  I use this code to archive this:</p>
  
  <pre><code>List&lt;Address&gt; searchResults = new ArrayList&lt;&gt;();
  
          Geocoder geocoder = new Geocoder(context, context.getResources().getConfiguration().locale);
          List&lt;Address&gt; addresses = null;
  
          try {
              addresses = geocoder.getFromLocationName(query, count);
  
              for (Address address : addresses) {
                  if (address.getMaxAddressLineIndex() &gt; 0) {
                      searchResults.add(address);
                  }
              }
          } catch (IOException e) {
              return Collections.emptyList();
          }
  
          return searchResults;
  </code></pre>
  
  <p>But It seems, that It outputs locations from all over the world, sorted in a random order. What can I do to get results related with current location?</p>