mdanishs
mdanishs

Reputation: 2036

Finding city names and area details using Google Places API in android

I want to get details of the area I am standing in, I have the latitude and longitude using the LocationManager class, but how do I get the details such as name of the area, address etc? I don't want to use Geocoder due to restricted number of requests. How do find the details of the area using Google Places API?

Upvotes: 3

Views: 12936

Answers (1)

Yas
Yas

Reputation: 270

Store the result of getFromLocation(double, double, int) method in an Address object, then call the method getLocality().

Upvotes: 0

Related Questions