memo.xight.org - 2005-07-14

2005-07-14 Thu

SEO,ユーザビリティ,アクセシビリティ関連の本

chalow Google Local Plug-in

- Source

### Google Local Plug-in
# usage: {{google_local('what','where')}}
sub google_local {
	my ($what,$where) = @_;
	my $prefix = q(http://local.google.co.jp);
 
	my $what_enc = q();
	$what_enc = Jcode->new($what)->utf8;
	$what_enc =~ s/([^0-9a-z_ ])/'%'.unpack('H2', $1)/gei;
	$what_enc =~ s/\s/+/g;
 
	my $where_enc = q();
	$where_enc = Jcode->new($where)->utf8;
	$where_enc =~ s/([^0-9a-z_ ])/'%'.unpack('H2', $1)/gei;
	$where_enc =~ s/\s/+/g;
 
	my $ret  = qq(<a href="$prefix/local?q=$what_enc&near=$where_enc" title="Google Local - $where の $what">);
	   $ret .= qq(Google Local - $where$what);
	   $ret .= qq(</a>);
	return $ret;
}

map.rails2u.com

- Summary
クリックして拡大
  郵便番号から住所を取得.
  そのまま緯度,経度を取得してGoogle Mapsを表示.
  郵便番号は日本郵政公社のデータ[2005-10-20-2]を,
  緯度,経度は街区レベル位置参照情報ダウンロードサービス[2003-11-14-4]のデータを利用.
- Reference
  map.rails2u.com
  http://map.rails2u.com/
  map.rails2u.com - help
  http://map.rails2u.com/help.html
  日本郵政公社 - 郵便番号データ
  http://www.post.japanpost.jp/zipcode/dl/kogaki.html
  街区レベル位置参照情報ダウンロードサービス
  http://nlftp.mlit.go.jp/isj/top.html
- via
  cl.pocari.org - 2005-07-12
  http://cl.pocari.org/2005-07-12-2.html

世界のCMフェスティバル