开发者

How to get Lat & Long Value for an address input in android?

开发者 https://www.devze.com 2023-02-09 12:53 出处:网络
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 ac

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

精彩评论

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