twitter API / geoタグ!
早いもので10月ですね。
さて今朝、Twitter関連の新機能「Lists」が発表された模様です。これは、グループを定義して自分のタイムラインをグループ別に見る機能かなと思ったんですが、その登録情報すら必要に応じて公開が可能となるようです。それによって、フォロワーが新しいFriendを探すのに役立てたいというような狙いがあるとのこと。はたしてどんな反響を呼ぶでしょうか?
個人的には、分類しているということを他人に見られるのはどうかな?・・・と、少し躊躇してしまうように思うのですが、こういう新しいものはまた新しい感覚で使うものなのかも知れません。
そして、もしかしたらこれも今日から開始なのかも知れませんが、GEOタグをAPIの結果に見つけましたので、掲載しておきます。
これは、下記のコマンド(TwitterのAPI)を実行(WebブラウザからURLを入力)して得ることが可能です。
実行コマンド
http://twitter.com/account/verify_credentials.xml
下記のソースの太字にした部分が新しい仕様によって追加されたものです。
前回の開発者会議のときにも言及されていたのですが、先進的開発者の人たちが先行して使い始めるのかもしれませんね。
個人の設定を「有効」にすれば、 /user/geo_enabled が true になり、対応したアプリケーションで発言することによって /status/geo に緯度経度情報が埋め込まれるようになるのだと思われます。
取得したXMLのソース
<?xml version="1.0" encoding="UTF-8"?>
<user>
<id>59432888</id>
<name>Eternal Design Corp.</name>
<screen_name>eternal_design</screen_name>
<location>Tokyo</location>
<description>株式会社エターナルデザイン開発室のアカウント。
ブログなどの更新情報を発信しています。</description>
<profile_image_url>http://a3.twimg.com/profile_images/328020045/
icon_120x120_20080121_normal.jpg</profile_image_url>
<url>http://www.eternaldesign.jp</url>
<protected>false</protected>
<followers_count>4</followers_count>
<profile_background_color>f2eee4</profile_background_color>
<profile_text_color>3C3940</profile_text_color>
<profile_link_color>0099B9</profile_link_color>
<profile_sidebar_fill_color>95E8EC</profile_sidebar_fill_color>
<profile_sidebar_border_color>5ED4DC</profile_sidebar_border_color>
<friends_count>6</friends_count>
<created_at>Thu Jul 23 11:34:14 +0000 2009</created_at>
<favourites_count>2</favourites_count>
<utc_offset>32400</utc_offset>
<time_zone>Tokyo</time_zone>
<profile_background_image_url>
http://a3.twimg.com/profile_background_images/27400293/
eternaldesign_logo_270t.gif</profile_background_image_url>
<profile_background_tile>false</profile_background_tile>
<statuses_count>12</statuses_count>
<notifications>false</notifications>
<geo_enabled>false</geo_enabled>
<verified>false</verified>
<following>false</following>
<status>
<created_at>Thu Sep 10 17:23:42 +0000 2009</created_at>
<id>3891699292</id>
<text>ブログに「Twitter Developers Meetup in Tokyo」を掲載しました。
http://bit.ly/4tf4t</text>
<source>web</source>
<truncated>false</truncated>
<in_reply_to_status_id></in_reply_to_status_id>
<in_reply_to_user_id></in_reply_to_user_id>
<favorited>false</favorited>
<in_reply_to_screen_name></in_reply_to_screen_name>
<geo/>
</status>
</user>
どのようにして geo_enable を有効するかなどについては、まだ公開されていない模様です。
やがて全貌も明らかになっていくものと思われます。
(Twitter REST API Method: statuses update でサンプルが確認可能。しかしコメントには、「Not yet part of the current payload.[COMING SOON] 」と記載)
