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:
 http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html 

There is a related issue in the tracker, but it's been marked released
with no comment:
 http://code.google.com/p/android/issues/detail?id=1537 

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 " http://maps.google.com/?q=restaurant 
+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?

Thanks,
Lance Nanek
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. android restart during a2dp connection

Hi,

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 ?

regards,
Pavan







-- 
--Pavan Savoy

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

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
possible?

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