How to get Lat & Long Value for an address input in android?
I have gone through many post but did not got any clear answer. I want to get address input from user and want to get lat long value corresponding to tha开发者_如何转开发t address.
Assuming you have access to the internet, you can use Google's geocoding api.
It'll give you a normal request that will return Json or XML containing everything you'd want about the address.
HLMGTFY: What you're trying to do is called Geocoding, and here are the API notes from Android on it: http://developer.android.com/reference/android/location/Geocoder.html. Note that you will need to have a valid Google Maps API key first.
精彩评论