Get list of places surrounding user's current location

33,547

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

Share:
33,547
JT703
Author by

JT703

Updated on February 09, 2020

Comments

  • JT703
    JT703 about 4 years

    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.