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) {
source share