Thanks Jeff, john. I tried with Geocoder getFromLocationName - it does not return business based results unless you have the complete address. I would greatly appreciate if you have a code piece written that works. I am using android 2.1.
thanks Sunil. On Jan 20, 11:15 am, jeffro <j...@trackaroo.com> wrote: > 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 <jcarp...@gmail.com> 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 <menon1...@gmail.com> 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.- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en