经纬度-地址 互相转换 https://developers.google.com/maps/documentation/geocoding/ http://maps.googleapis.com/maps/api/geocode/output?parametershttps://maps.googleapis.com/maps/api/geocode/output?parametersoutput:json/xmlparameters:address/latlng/components/sensor可选参数:bounds/language/region/componentsAs is standard in URLs,all parameters are separated using the ampersand (&) character.JSON Output Formats(json输出格式)
http://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true_or_falseXML Output Formats
http://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=true_or_false 例如:http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true&language=zh-CNhttp://maps.googleapis.com/maps/api/geocode/json?address=杭州&sensor=true&language=zh-CN
Android使用该api需要用到最新的google play service和google应用商店 以及google-play-services_lib和android-support-v4.jar
申请api key的地址:https://code.google.com/apis/console
另外附上sougou地图的地址:http://map.sogou.com/api/documentation/mobile/api1.0/android/basics.html
需要翻墙访问:http://cheng-min-i-taiwan.blogspot.com/2013/04/google-maps-android-api-v2-android.html#comment-form
本文提供了一站式解决方案,介绍了如何通过Google Maps API在经纬度与地址间进行转换,包括JSON和XML输出格式,以及API使用注意事项,如翻墙访问等。
1662

被折叠的 条评论
为什么被折叠?



