title: Search In Google Maps By Category
body: <p>I want to make google maps api to provide result of search by category as the nearest hotels available in certain range and i want also to control range , here is the code i started with , this code search when the use apply an address . i want this this to done when the user enter a certain category not by entering an address</p>
  
  <pre><code>protected void search(List&lt;Address&gt; addresses) {
  
  Address address = (Address) addresses.get(0);
  home_long = address.getLongitude();
  home_lat = address.getLatitude();
  latLng = new LatLng(address.getLatitude(), address.getLongitude());
  
  addressText = String.format(
          "%s, %s",
          address.getMaxAddressLineIndex() &gt; 0 ? address
                  .getAddressLine(0) : "", address.getCountryName());
  
  markerOptions = new MarkerOptions();
  
  markerOptions.position(latLng);
  markerOptions.title(addressText);
  
  map1.clear();
  map1.addMarker(markerOptions);
  map1.moveCamera(CameraUpdateFactory.newLatLng(latLng));
  map1.animateCamera(CameraUpdateFactory.zoomTo(15));
  locationTv.setText("Latitude:" + address.getLatitude() + ", Longitude:"
          + address.getLongitude());
   }
  </code></pre>
  
  <p>what the modification needed to be done in this code ?</p>