$address = "$view[wr_add]";
$xml = simplexml_load_file("http://maps.google.com/maps/api/geocode/xml?address=".urlencode($address)."&language=ko&sensor=false");
$lat = $xml->result->geometry->location->lat;
$lng = $xml->result->geometry->location->lng;
// php.ini 설정중 allow_url_fopen = On 확인 / Off 이면 추출안됨
echo "lat = ". $lat ."
";
echo "lng = ". $lng ."
";
읽어주셔서 감사합니다.