Get current location using GPS instead of Google place picker API

Photo by [henry perks](https://unsplash.com/@hjkp?utm_source=medium&utm_medium=referral) on [Unsplash](https://unsplash.com?utm_source=medium&utm_medium=referral)

According to the policy of google the place picker is depreciated in January and the new version of place picker is available but it’s very difficult and confusing.

So I have to find a new approach to get a full current location without using google place picker API. After some research, I got nothing special and then I experimented with my own logic.

This article is part of Today I Learn Category. Follow this article step by step and implement it on your projects and get full current address of your mobile phone.

So let’s started

So, for getting full address, first, we get latitude and longitude of the current location. because latitude and longitude help to find out the location. So below code shows how we get latitude and longitude of the current location.

After that now calculate the full address with the help of latitude and longitude. So below code returns full address from latitude and longitude.

So after that, we get a full address from latitude and longitude. Now the main thing is android permissions. Location permissions are important without permission this code doesn’t work. So, add below permissions in your project manifest file.

See also