私はアンドロイドが初めてで、この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
事前にタイ
編集
この結果を使用して、アクティビティの Google マップに実際の場所を表示することは可能ですか?