我是 android 新手,尝试从以下位置读取此 JSON 时遇到了一些麻烦:
http://maps.googleapis.com/maps/api/geocode/json?address=portugal&sensor=true
{
"results" : [
{
"address_components" : [
{
"long_name" : "Portugal",
"short_name" : "PT",
"types" : [ "country", "political" ]
}
],
"formatted_address" : "Portugal",
"geometry" : {
"bounds" : {
"northeast" : {
"lat" : 42.15420480,
"lng" : -6.19020910
},
"southwest" : {
"lat" : 32.403740,
"lng" : -31.2751580
}
},
"location" : {
"lat" : 39.39987199999999,
"lng" : -8.2244540
},
"location_type" : "APPROXIMATE",
"viewport" : {
"northeast" : {
"lat" : 42.15420480,
"lng" : -6.19020910
},
"southwest" : {
"lat" : 36.96017720,
"lng" : -9.51711070
}
}
},
"types" : [ "country", "political" ]
}
],
"status" : "OK"
}
任何人都可以指点我一些图书馆或一些代码让我开始吗?:D
提前TY
编辑
是否可以使用此结果并在活动中显示谷歌地图中的实际位置?