api_key) || empty($address)) { return false; } //出力タイプは csv, xml, kml, json のいずれか //それ以外ならば デフォルトの json にする if (array_search($type, $this->type_select) === false) { $type = "json"; } $url = $this->request_url; $url .= "?q=" . urlencode($address); $url .= "&output=" . $type; $url .= "&sensor=" . $sensor; //true_or_false $url .= "&key=" . $this->api_key; $handle = fopen($url, "r"); $buffer = ""; if ($handle) { while (!feof($handle)) { $buffer .= fgets($handle); } fclose($handle); } return $buffer; } } ?> <? echo $aryEstate["rentnm"] ?>|賃貸物件情報 / エステートプラザ株式会社
getValue(mb_convert_encoding($aryEstate["address"], "UTF-8", $DbCode)); //print_r($result1); $obj_result = json_decode($result); //new dbug($obj_result); $arr_result = $obj_result->Placemark[0]->Point->coordinates; //緯度を取得 $latitude = $arr_result[1]; //経度を取得 $longitude = $arr_result[0]; if($aryEstate["ido"]!=""){ $latitude = $aryEstate["ido"]; } if($aryEstate["keido"]!=""){ $longitude = $aryEstate["keido"]; } ?>

ウィンドウを閉じる