开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜