http://ditu.google.com/maps/geo?output=json&oe=utf-8&q=要查的地址
/**
* a positive response:
*
*
{
"name": "上海金橋開發區",
"Status": {
"code": 200,
"request": "geocode"
},
"Placemark": [
{
"id": "p1",
"address": "中國上海市浦東新區金橋開發\r\r\n區",
"AddressDetails": {
"Country": {
"CountryNameCode": "CN",
"CountryName": "中國",
"Locality": {
"LocalityName": "上海\r\r\n市",
"DependentLocality": {
"DependentLocalityName": "浦東新區",
"AddressLine": [
"金橋開發區"
]
}
}
},
"Accuracy": 9
},
"Point": {
"coordinates": [
121.588633,
31.240829,
0
]
}
},
{
"id": "p2",
"address": "中國上海市浦東新區浦東金橋開發\r\r\n區",
"AddressDetails": {
"Country": {
"CountryNameCode": "CN",
"CountryName": "中國",
"Locality": {
"LocalityName": "上海\r\r\n市",
"DependentLocality": {
"DependentLocalityName": "浦東新區",
"AddressLine": [
"浦東金橋開發區"
]
}
}
},
"Accuracy": 9
},
"Point": {
"coordinates": [
121.588633,
31.240829,
0
]
}
}
]
}
a negetive response:
{
"name": "東西打點",
"Status": {
"code": 602,
"request": "geocode"
}
}