Find the nearest restaurant, cafe and grocery store using google maps in android

I work in android sdk and use google maps api. I wanted to know if there is a way to find the nearest restaurateur or cafe or grocery store from the user's current location.

Many applications are available for this purpose, but I want to encode my training application.

+4
source share
4 answers

It may help, I don’t know if it works for Android.

http://code.google.com/apis/maps/documentation/places/

+2
source

I had the same problem as the navigation program for Android.
I have finished using Yahoo! Local Search , it worked very well.

You should understand how web services work, but basically you make an HTTP GET request with parameters such as Location, Query (restaurant, coffee, etc.) and other parameters, and get a response like XML or JSON (your choice )

What you do with the results is up to you.

Additions:
The default local Yahoo search results are XML.
This is an example of how to make a request in Android:

public void doWebRequest() { try { HttpClient client = new DefaultHttpClient(); String url = "http://local.yahooapis.com/LocalSearchService/V3/localSearch?appid=YahooDemo&query=pizza&zip=94306&results=2"; HttpGet request = new HttpGet(url); HttpResponse response = client.execute(request); BufferedInputStream bis = new BufferedInputStream(response.getEntity().getContent()); SAXReader reader = new SAXReader(); handleResponse(reader.read(bis)); } catch (Exception e) { System.err.println(e); } } private void handleResponse(Document doc) { // doc is the XML response // process the results here } 
+1
source

There is no API in Android for this, sorry. Web services can be used for this.

0
source

Maybe this can help.

Assignment of Intentions = New Intent (Intent.ACTION_VIEW, Uri.parse ("geo: 0,0? Q = Cafe")); startActivity (intent);

0
source

All Articles