Check out the GeoCoder class and the getFromLocationName methods.  You
can input a search string like "whole foods,
los gatos, CA" and it will return a list of Address results.  You can
also specify a bounding box if you want to limit your results to your
current map.

http://developer.android.com/reference/android/location/Geocoder.html

Jeff
--------------------------------------------------------------------------------------------------------
Trackaroo
Trackmaster - Motorsports Lap Timer (http://trackmaster.trackaroo.com)
Dynomaster - Performance Dyno (http://dynomaster.trackaroo.com)


On Jan 19, 10:41 am, John <[email protected]> wrote:
> Google provides a fairly simple interface for local searches.
>
> http://code.google.com/apis/ajaxsearch/documentation/#fonje
>
> In the search request you can specify a latitude and longitude with
> the text to get a reference to those nearby businesses. Here is the
> reference to the parameters for the search.
>
> http://code.google.com/apis/ajaxsearch/documentation/reference.html#_...
>
> You can simply make a http call and parse the json response when it
> comes back. It should be straight forward from there.
>
> Thanks,
> John
>
> On Jan 17, 8:00 pm, sunny <[email protected]> wrote:
>
>
>
> > Hi Folks,
> > wondering if any of you can help.
> > This is what I am trying to do:
> > simple app to get list of addresses I am interested in based on my current
> > location.
>
> > I get the current location using location services. Now, based on this
> > current location I want to do a search on business places without really
> > using the SearchManager's triggerSearch. The problem with the triggerSearch
> > is that it launches the googlemap and show the business address I am
> >  looking for and it is blocked. I want to get the control back.  I do not
> > want to launch the map with the listing. all I want to do is the get the
> > Geopoint of the business address I am interested in using a simple web
> > search. I tried reverseGeocoding , but it is does not work with business
> > address. It needs full address. any suggestion?.
>
> > Simply put, all I want to do is a simple websearch , say query="whole foods,
> > los gatos, CA" to get its full address. and then use it to get the GeoPoint.
>
> > I am stuck and wondering if anyone can give me some pointers.
>
> > thanks a ton in advance.
> > Sunny.
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to