Limit Geocoder getFromLocationName scope to one specific City
<p>The following is my method:</p>

<pre><code>List&lt;Address&gt; addresses = null;
    addresses = new Geocoder(passengerHomeActivity).getFromLocationName(this.addressInput.getText().toString(), 1);
</code></pre>

<p>is there any way to limit the <code>Geocoder</code> <code>getFromLocationName</code>'s scope to one specific city? Sometimes when I enter an Address without writing the city name, it leads me to an address which is the same but in another city.</p>

<p>My idea is by getting the <code>latitude</code> and <code>longitude</code> of the user, get the value of the city, and set the limit scope to the <code>getFromLocationName</code> method, but I don't have any clue with the implementation.</p>

<p>Thanks</p>
