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("|([^<]+)|", $mdata, $nreg); preg_match_all("|([^<]+)|", $mdata, $dreg); preg_match_all("|([^<]+)|", $mdata, $lreg); for ($i = 0; $i < 3; $i++) { if ($nreg[1][$i] == "") continue; $n = $i + 1; $moyari.= $n.":".$nreg[1][$i]."(".$lreg[1][$i].") ".$dreg[1][$i]."
"; } } //出力 echo <<<_GOOGLE GoogleMap地図 [GoogleMap地図]
{$address}付近

[1] [↑2] [3]
[4←] [Point] [→6]
[7] [↓8] [9]
倍率
地図の中心にPoint移動
最寄駅
$moyari URLコピー

[0]戻る _GOOGLE; ?>