http://ditu.google.com/maps/geo?output=json&oe=utf-8&q=要查的地址
/**
* a positive response:
*
*
{
"name": "上海金橋開發(fā)區(qū)",
"Status": {
"code": 200,
"request": "geocode"
},
"Placemark": [
{
"id": "p1",
"address": "中國上海市浦東新區(qū)金橋開發(fā)\r\r\n區(qū)",
"AddressDetails": {
"Country": {
"CountryNameCode": "CN",
"CountryName": "中國",
"Locality": {
"LocalityName": "上海\r\r\n市",
"DependentLocality": {
"DependentLocalityName": "浦東新區(qū)",
"AddressLine": [
"金橋開發(fā)區(qū)"
]
}
}
},
"Accuracy": 9
},
"Point": {
"coordinates": [
121.588633,
31.240829,
0
]
}
},
{
"id": "p2",
"address": "中國上海市浦東新區(qū)浦東金橋開發(fā)\r\r\n區(qū)",
"AddressDetails": {
"Country": {
"CountryNameCode": "CN",
"CountryName": "中國",
"Locality": {
"LocalityName": "上海\r\r\n市",
"DependentLocality": {
"DependentLocalityName": "浦東新區(qū)",
"AddressLine": [
"浦東金橋開發(fā)區(qū)"
]
}
}
},
"Accuracy": 9
},
"Point": {
"coordinates": [
121.588633,
31.240829,
0
]
}
}
]
}
a negetive response:
{
"name": "東西打點(diǎn)",
"Status": {
"code": 602,
"request": "geocode"
}
}
posted on 2009-06-03 09:57
冰是沒有未來的,因為它的永恒 閱讀(498)
評論(0) 編輯 收藏 所屬分類:
java