Open bbeckk opened 6 years ago
For Android - this library uses Geocoder under the hood.
Returns an array of Addresses that are known to describe the area immediately surrounding the given latitude and longitude.
You could useres[0].country
for example.
Thankyou.. @bkspace I just wonder why it gives an array with 10 different objects?
I don’t think I know the exact answer to that - other than geocoding is hard and the backend services will try and ‘estimate’ your location
Why does it gives 10 outcomes in the following code? How can I get the city name only? I've tested in android devices.
Debugged value: