0,'18'=>0.3,'17'=>1,'15'=>8,'13'=>32,'11'=>128,'9'=>500,'7'=>2000,'5'=>4000); $pZoom = $Width * ($zmlv[$Zoom]+1); $sel[$Zoom] = " selected"; // 詳細は21+? if ($Zoom == 21) $Zoom = '21+'; //移動先座標 $EastViewX = $ViewX + (0.000002 * $pZoom); $WestViewX = $ViewX - (0.000002 * $pZoom); $NorthViewY = $ViewY + (0.000002 * $pZoom); $SouthViewY = $ViewY - (0.000002 * $pZoom); // 住所取得 $data = @file_get_contents("http://nishioka.sakura.ne.jp/google/ws.php?lon=$ViewX&lat=$ViewY&format=simple"); if ($data) { $data = mb_convert_encoding($data, "SJIS", "UTF-8"); preg_match("|
([^<]+)|", $data, $reg); $address = $reg[1]; } // 最寄り駅取得 $mdata = @file_get_contents("http://express.heartrails.com/api/xml?method=getStations&x=$ViewX&y=$ViewY"); if ($mdata) { $mdata = mb_convert_encoding($mdata, "SJIS", "UTF-8"); preg_match_all("|