I have the below code to convert lat, long to human readable address. Now iam getting full details including street name. How can i get only city, state, country? I don\'t want
Use the following methods on the objects from addresses:
getLocality()
getCountryName()
Use
getAdminArea()
to return state.
I do not know how accurate this is for other countries but for addresses in the USA, this returns the correct state name.
P.S. Sorry for writing a whole separate answer, I am not able to make comments yet.