Recent Post»

Recent Comment»

Archive»

« 2025/1 »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

위치 좌표로부터 주소 얻기

Open API | 2010. 6. 21. 13:56 | Posted by 블로장생

구글 맵에서 다음과 같이 위치, 경도를 주면 주소 정보를 JSON 형식으로 리턴합니다. 번지까지 상세한 정보를 리턴해 주고 있네요.

자세한 정보는 Google Geocoding API를 참고하시면 됩니다.

http://maps.google.co.kr/maps/geo?q=35.0760269165,127.716156006

{
  "name": "35.0760269165,127.716156006",
  "Status": {
    "code": 200,
    "request": "geocode"
  },
  "Placemark": [ {
    "id": "p1",
    "address": "한국 전라남도 광양시 다압면 도사리 422-2",
    "AddressDetails": {
   "Accuracy" : 5,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "전라남도",
         "Locality" : {
            "LocalityName" : "광양시",
            "PostalCode" : {
               "PostalCodeNumber" : "545-863"
            },
            "Thoroughfare" : {
               "ThoroughfareName" : "다압면 도사리 422-2"
            }
         }
      },
      "CountryName" : "한국",
      "CountryNameCode" : "KR"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.0792088,
        "south": 35.0729136,
        "east": 127.7192250,
        "west": 127.7129298
      }
    },
    "Point": {
      "coordinates": [ 127.7160774, 35.0760612, 0 ]
    }
  }, {
    "id": "p2",
    "address": "한국 전라남도 광양시 다압면 도사리 414 청매실농원",
    "AddressDetails": {
   "Accuracy" : 9,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "전라남도",
         "Locality" : {
            "AddressLine" : [ "청매실농원" ],
            "LocalityName" : "광양시",
            "PostalCode" : {
               "PostalCodeNumber" : "545-863"
            },
            "Thoroughfare" : {
               "ThoroughfareName" : "다압면 도사리 414"
            }
         }
      },
      "CountryName" : "한국",
      "CountryNameCode" : "KR"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.0784526,
        "south": 35.0721574,
        "east": 127.7193946,
        "west": 127.7130994
      }
    },
    "Point": {
      "coordinates": [ 127.7162470, 35.0753050, 0 ]
    }
  }, {
    "id": "p3",
    "address": "한국 전라남도 광양시 다압면 도사리",
    "AddressDetails": {
   "Accuracy" : 5,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "전라남도",
         "Locality" : {
            "LocalityName" : "광양시",
            "PostalCode" : {
               "PostalCodeNumber" : "545-863"
            },
            "Thoroughfare" : {
               "ThoroughfareName" : "다압면 도사리"
            }
         }
      },
      "CountryName" : "한국",
      "CountryNameCode" : "KR"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.0999238,
        "south": 35.0656751,
        "east": 127.7338020,
        "west": 127.6869791
      }
    },
    "Point": {
      "coordinates": [ 127.7017386, 35.0829224, 0 ]
    }
  }, {
    "id": "p4",
    "address": "한국 전라남도 광양시 다압면 도사리",
    "AddressDetails": {
   "Accuracy" : 5,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "전라남도",
         "Locality" : {
            "LocalityName" : "광양시",
            "PostalCode" : {
               "PostalCodeNumber" : "545-863"
            },
            "Thoroughfare" : {
               "ThoroughfareName" : "다압면 도사리"
            }
         }
      },
      "CountryName" : "한국",
      "CountryNameCode" : "KR"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.0999238,
        "south": 35.0489776,
        "east": 127.7562448,
        "west": 127.6869791
      }
    },
    "Point": {
      "coordinates": [ 127.7184518, 35.0675421, 0 ]
    }
  }, {
    "id": "p5",
    "address": "한국 전라남도 광양시 다압면",
    "AddressDetails": {
   "Accuracy" : 5,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "전라남도",
         "Locality" : {
            "LocalityName" : "광양시",
            "PostalCode" : {
               "PostalCodeNumber" : "545-860"
            },
            "Thoroughfare" : {
               "ThoroughfareName" : "다압면"
            }
         }
      },
      "CountryName" : "한국",
      "CountryNameCode" : "KR"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.1833167,
        "south": 35.0489776,
        "east": 127.7562448,
        "west": 127.6038570
      }
    },
    "Point": {
      "coordinates": [ 127.6705890, 35.1274914, 0 ]
    }
  }, {
    "id": "p6",
    "address": "한국 전라남도 광양시 다압면",
    "AddressDetails": {
   "Accuracy" : 5,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "전라남도",
         "Locality" : {
            "LocalityName" : "광양시",
            "PostalCode" : {
               "PostalCodeNumber" : "545-860"
            },
            "Thoroughfare" : {
               "ThoroughfareName" : "다압면"
            }
         }
      },
      "CountryName" : "한국",
      "CountryNameCode" : "KR"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.1833167,
        "south": 35.0489776,
        "east": 127.7562448,
        "west": 127.6038570
      }
    },
    "Point": {
      "coordinates": [ 127.6909949, 35.1232031, 0 ]
    }
  }, {
    "id": "p7",
    "address": "한국 전라남도 광양시",
    "AddressDetails": {
   "Accuracy" : 4,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "전라남도",
         "Locality" : {
            "LocalityName" : "광양시"
         }
      },
      "CountryName" : "한국",
      "CountryNameCode" : "KR"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 34.9726000,
        "south": 34.8984000,
        "east": 127.7854000,
        "west": 127.6507000
      }
    },
    "Point": {
      "coordinates": [ 127.6958882, 34.9406968, 0 ]
    }
  }, {
    "id": "p8",
    "address": "한국 전라남도",
    "AddressDetails": {
   "Accuracy" : 2,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "전라남도"
      },
      "CountryName" : "한국",
      "CountryNameCode" : "KR"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 35.4893517,
        "south": 33.9531887,
        "east": 127.9478783,
        "west": 125.0981496
      }
    },
    "Point": {
      "coordinates": [ 126.9910000, 34.8679000, 0 ]
    }
  }, {
    "id": "p9",
    "address": "전라도",
    "AddressDetails": {
   "Accuracy" : 3,
   "AddressLine" : [ "전라도" ]
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 36.1567649,
        "south": 33.9531887,
        "east": 127.9478783,
        "west": 125.0981496
      }
    },
    "Point": {
      "coordinates": [ 126.9541070, 35.3564250, 0 ]
    }
  }, {
    "id": "p10",
    "address": "한국",
    "AddressDetails": {
   "Accuracy" : 1,
   "Country" : {
      "CountryName" : "한국",
      "CountryNameCode" : "KR"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 38.6340000,
        "south": 33.0041000,
        "east": 129.7430000,
        "west": 124.8541000
      }
    },
    "Point": {
      "coordinates": [ 127.7669220, 35.9077570, 0 ]
    }
  } ]
}
: