Search code examples
androidgoogle-mapslocationcity

Android - Getting nearby cities around a location


After a lot of researchs in Stack I havn't been able to find a correct answer.

My problem is this: I want to get a string array with the city names surrounding user's location for a given radius.

I already retrieved user's location with LocationManager and user's city with Geocoder

Any answer of the already asked ones in this page has given to me a satisfactory way to achieve this.

Thanks in advance !


Solution

  • I resolved this by using GeoFire. It works fine and it's pretty easy to use I recommend it !