Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get list of places surrounding user's current location

So, I've seen many questions about this here on SO and in other forums, but no definite answer. It seems like such a basic process, so I don't understand why I can't find any answers for it.

In the Android Developer documentation - http://developer.android.com/guide/topics/location/obtaining-user-location.html#Adjusting - near the bottom in the section "Helping the user decide on where to go", they give the example, "you're looking to provide a list of nearby restaurants, stores, and entertainment and the order of recommendations changes depending on the user location."

This post - finding nearby locations - suggests using external APIs. It doesn't make sense to me that Google's Android API would not include this functionality, especially given the above scenario in their documentation.

Other posts talk about using the GeoCoder + getFromLocationName(). This doesn't seem right either seeing as how it doesn't really feel like a search and it also seems geared toward a specific address.

Is the above example from the Android Developer documentation able to be done using the current Android SDK? I've seen it done in many apps and am getting very frustrated trying weird solutions that don't get anywhere. Please help me understand what's going on.

Thanks!

UPDATE: Is Google Places API not the answer for this? It is a web service, but it seems like the it does exactly what I've described above? If I am way off on this, please let me know.

like image 584
JT703 Avatar asked May 31 '11 00:05

JT703


People also ask

What is Googleplaces?

Google Places is Google's listing for local business search results. Google Places appears at the very top of the Google search results when a user is looking for local information.

How do I search nearby on Google Maps?

According to the release: Now, whenever you want to discover places in your area, simply tap the new Explore button at the bottom right corner of your map to get a quick look at what's nearby (where available).


1 Answers

Google APIs Client Library for Java (for HTTP-based APIs) and Google Places API (for Places Data) is the way to go.

Using Google Places API

like image 105
JT703 Avatar answered Oct 06 '22 00:10

JT703