Official way to search for nearby businesses?

by Lance Nanek » Fri, 04 Sep 2009 02:47:58 GMT

Sponsored Links
 Does anyone know the proper way to search for nearby businesses in
your own application? I'll cover several things I've tried below, but
they either don't work or require a lot of extra code.

GeoCoder#getFromLocationName works for specific place queries like
"white house". It returns nothing for something like "restaurant near
boston", however. I tested on both my T-Mobile G1 and in the 1.5_r3
SDK emulator. The blog specifically says it can be used to "search for
businesses", however: 

There is a related issue in the tracker, but it's been marked released
with no comment: 

Giving up on GeoCoder, sending an ACTION_VIEW Intent with a  "geo:0,0?
q=restaurant+near+boston" URI works great for the built in Maps
application, but sending it to my own subclass of MapActivity just
shows the default map you see when starting it normally.

Using an HttpURLConnection to " 
+near+boston&output=kml" would get me the data, but then requires
writing a KML parser and calculating distances on my own.

Anyone have any advice?

Lance Nanek

Other Threads

1. android restart during a2dp connection


We see this problem only when HSP/HFP is involved in a connection.
On having just the a2dp connection, the problem does not exist.

What is causing android to restart on a HSP/HFP connection ?


--Pavan Savoy


2. Is it possible to connect to a local dev server using Phone connected to debugger?

I'd like to connect to a local tomcat dev server on my laptop and use
my android phone connected via a usb cable to debug things.  Is this

Do I need to use wifi to make this happen?


3. Text and delay

4. mobile ARM11-based platform, Linux 2.6.30 drivers - seeking suggestions for a quick port

5. Camera Activity

6. default measuring units px or dp

7. Contacts GroupU - easily manage your contacts