fix issue 159
git-svn-id: https://osmand.googlecode.com/svn/trunk@666 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
64e9fd3b8b
commit
d3bc2f8ed6
1 changed files with 3 additions and 2 deletions
|
@ -79,9 +79,10 @@ public class SearchAddressOnlineActivity extends ListActivity {
|
|||
try {
|
||||
final List<Place> places = new ArrayList<Place>();
|
||||
StringBuilder b = new StringBuilder();
|
||||
b.append("http://nominatim.openstreetmap.org/search/"); //$NON-NLS-1$
|
||||
b.append(URLEncoder.encode(search));
|
||||
b.append("http://nominatim.openstreetmap.org/search"); //$NON-NLS-1$
|
||||
b.append("?format=xml&addressdetails=0&accept-language=").append(Locale.getDefault().getLanguage()); //$NON-NLS-1$
|
||||
b.append("&q=").append(URLEncoder.encode(search)); //$NON-NLS-1$
|
||||
|
||||
log.info("Searching address at : " + b.toString()); //$NON-NLS-1$
|
||||
URL url = new URL(b.toString());
|
||||
URLConnection conn = url.openConnection();
|
||||
|
|
Loading…
Reference in a new issue