Google Map ~ get address by latitude, longitude by URL

this url return the location's json data

http://maps.google.com/maps/geo?ll=40.479581,-117.773438&output=json

the result:
------------------------------------------------------------------------------------------------

{
"name": "40.479581,-117.773438",
"Status": {
"code": 200,
"request": "geocode"
},
"Placemark": [ {
"id": "p1",
"address": "Unnamed Rd, 伊姆利, 內華達州, 美國",
"AddressDetails": {
"Accuracy" : 6,
"Country" : {
"AdministrativeArea" : {
"AdministrativeAreaName" : "NV",
"SubAdministrativeArea" : {
"Locality" : {
"LocalityName" : "伊姆利",
"Thoroughfare" : {
"ThoroughfareName" : "Unnamed Rd"
}
},
"SubAdministrativeAreaName" : "潘興縣"
}
},
"CountryName" : "USA",
"CountryNameCode" : "US"
}
},
"ExtendedData": {
"LatLonBox": {
"north": 40.5357461,
"south": 40.5238159,
"east": -117.7105151,
"west": -117.7364980
}
},
"Point": {
"coordinates": [ -117.7228985, 40.5286167, 0 ]
}
}, {
"id": "p2",
"address": "伊姆利, 內華達州, 美國",
"AddressDetails": {
"Accuracy" : 4,
"Country" : {
"AdministrativeArea" : {
"AdministrativeAreaName" : "NV",
"SubAdministrativeArea" : {
"Locality" : {
"LocalityName" : "伊姆利"
},
"SubAdministrativeAreaName" : "潘興縣"
}
},
"CountryName" : "USA",
"CountryNameCode" : "US"
}
},
"ExtendedData": {
"LatLonBox": {
"north": 40.9611589,
"south": 40.0010190,
"east": -117.2999130,
"west": -119.3386920
}
},
"Point": {
"coordinates": [ -118.3929417, 40.5186096, 0 ]
}
}, {
"id": "p3",
"address": "潘興縣, 內華達州, 美國",
"AddressDetails": {
"Accuracy" : 3,
"Country" : {
"AdministrativeArea" : {
"AdministrativeAreaName" : "NV",
"SubAdministrativeArea" : {
"SubAdministrativeAreaName" : "潘興縣"
}
},
"CountryName" : "USA",
"CountryNameCode" : "US"
}
},
"ExtendedData": {
"LatLonBox": {
"north": 40.9611589,
"south": 39.9982940,
"east": -117.2999130,
"west": -119.3392960
}
},
"Point": {
"coordinates": [ -118.4863963, 40.5685952, 0 ]
}
}, {
"id": "p4",
"address": "內華達州, 美國",
"AddressDetails": {
"Accuracy" : 2,
"Country" : {
"AdministrativeArea" : {
"AdministrativeAreaName" : "NV"
},
"CountryName" : "USA",
"CountryNameCode" : "US"
}
},
"ExtendedData": {
"LatLonBox": {
"north": 42.0022070,
"south": 35.0018570,
"east": -114.0396480,
"west": -120.0064730
}
},
"Point": {
"coordinates": [ -116.4193890, 38.8026097, 0 ]
}
}, {
"id": "p5",
"address": "美國",
"AddressDetails": {
"Accuracy" : 1,
"Country" : {
"CountryName" : "USA",
"CountryNameCode" : "US"
}
},
"ExtendedData": {
"LatLonBox": {
"north": 71.5388000,
"south": 18.7763000,
"east": -66.8850749,
"west": 170.5957000
}
},
"Point": {
"coordinates": [ -95.7128910, 37.0902400, 0 ]
}
} ]
}

------------------------------------------------------------------------------------------------


source
http://code.google.com/intl/zh-TW/apis/maps/documentation/javascript/v2/services.html

沒有留言: