Check Mobile App
Read now

Getting Longitude and Latitude from Address


There are many scenarios in Android development when you need GPS location, address and what not in your android application. For all theses android had provided many things like google Maps library, Geocoder etc. But if you need is the smallest one then using a full fledged library for it. So here we will discuss how can we get the longitude and latitude of an address from address string with the help of a simple google map API. It is the simplest and most effective way as it doesn’t need us to add the library only one API will do it.

So lets start, firstly by overriding the toString() method for our own model so that we can get the address in string representation.

Now as we have the Address object converted to string, lets move on to our next and final step i.e. getting longitude and latitude from this address.


. . .

Leave a Comment

Your email address will not be published. Required fields are marked*

Be the first to comment.


I sincerely thank everyone on the team for putting in your efforts so I can work 100% in my country without worrying that some local company will overcharge me and do the job wrong so I would definitely recommend anyone once again to work with the Webkul team. If I had to do this again I would definitely hire you without a second thought! thanks and wish you the best hope we keep working for a long time!

Martin Blumenfeld

Martin Blumenfeld

Talk to Sales


Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home