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. Problem Connect to SQLite

Hi Guy!
 I have written a code to create a database named "msgdb" in SQLite. Here
the code is running fine but the database is not created. Please help me....

--~--~---------~--~----~------------~-------~--~----~

2. How put "bold" to "android:textStyle" of a TextView from RemoteViews ?

TextView.setTypeface(Typeface tf); provided the font you chose
supports "Bold" style.

Balwinder Kaur
Open Source Development Center
T  Mobile stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



--~--~---------~--~----~------------~-------~--~----~

3. Delete Note does not work in the Notepadv2 example

4. SoundPool: playing/stopping-delaytime sometimes greater 300 ms

5. Android Market Functionality - Best way to add a "loading... row" with Efficient Adapter?

6. question regarding download.config

7. How to : display Button (Views) over a Camera preview ?