2013-02-11 74 views

回答

1

向谷歌提问。
例如

这http请求:
http://maps.google.com/maps/geo?q=Singapore

回报:

{ 
    "name": "Singapore", 
    "Status": { 
    "code": 200, 
    "request": "geocode" 
    }, 
    "Placemark": [ { 
    "id": "p1", 
    "address": "Singapur", 
    "AddressDetails": { 
    "Accuracy" : 1, 
    "Country" : { 
     "CountryName" : "Singapur", 
     "CountryNameCode" : "SG" 
    } 
}, 
    "ExtendedData": { 
     "LatLonBox": { 
     "north": 1.4708809, 
     "south": 1.1663980, 
     "east": 104.0856805, 
     "west": 103.6056246 
     } 
    }, 
    "Point": { 
     "coordinates": [ 103.8198360, 1.3520830, 0 ] 
    } 
    } ] 
}