東京メトロの駅名データのjsonファイルを作ってみた

IT Service

現在、東京メトロ10周年のアプリコンテストがあるので、その開発をしています。

締切は2014年11月17日と目前に迫っています。

例えば、何かしらの駅名データ例えば、青山一丁目のデータを取得したい場合。

odpt.Station:TokyoMetro.Ginza.AoyamaItchomeという形のデータが取得できます。

このデータが取得された時、これをそのまま、表示させるのは格好悪い。

もう一度、apiを叩きに行って、名前を変換させるのもいいのですが、APIを叩き過ぎると怒られるようなので、しょうがなく、予め、apiを叩いておき、jsonデータとして、内部的に保有することにしました。

作ったjsonファイルはこちら。

{“odpt.Station:TokyoMetro.Ginza.AoyamaItchome”:”\u9752\u5c71\u4e00\u4e01\u76ee”,”odpt.Station:TokyoMetro.Ginza.AkasakaMitsuke”:”\u8d64\u5742\u898b\u9644″,”odpt.Station:TokyoMetro.Ginza.Asakusa”:”\u6d45\u8349″,”odpt.Station:TokyoMetro.Ginza.Inaricho”:”\u7a32\u8377\u753a”,”odpt.Station:TokyoMetro.Ginza.Ueno”:”\u4e0a\u91ce”,”odpt.Station:TokyoMetro.Ginza.UenoHirokoji”:”\u4e0a\u91ce\u5e83\u5c0f\u8def”,”odpt.Station:TokyoMetro.Ginza.OmoteSando”:”\u8868\u53c2\u9053″,”odpt.Station:TokyoMetro.Ginza.Gaiemmae”:”\u5916\u82d1\u524d”,”odpt.Station:TokyoMetro.Ginza.Kanda”:”\u795e\u7530″,”odpt.Station:TokyoMetro.Ginza.Kyobashi”:”\u4eac\u6a4b”,”odpt.Station:TokyoMetro.Ginza.Ginza”:”\u9280\u5ea7″,”odpt.Station:TokyoMetro.Ginza.Shibuya”:”\u6e0b\u8c37″,”odpt.Station:TokyoMetro.Ginza.Shimbashi”:”\u65b0\u6a4b”,”odpt.Station:TokyoMetro.Ginza.Suehirocho”:”\u672b\u5e83\u753a”,”odpt.Station:TokyoMetro.Ginza.TameikeSanno”:”\u6e9c\u6c60\u5c71\u738b”,”odpt.Station:TokyoMetro.Ginza.Tawaramachi”:”\u7530\u539f\u753a”,”odpt.Station:TokyoMetro.Ginza.Toranomon”:”\u864e\u30ce\u9580″,”odpt.Station:TokyoMetro.Ginza.Nihombashi”:”\u65e5\u672c\u6a4b”,”odpt.Station:TokyoMetro.Ginza.Mitsukoshimae”:”\u4e09\u8d8a\u524d”,”odpt.Station:TokyoMetro.Marunouchi.AkasakaMitsuke”:”\u8d64\u5742\u898b\u9644″,”odpt.Station:TokyoMetro.Marunouchi.Awajicho”:”\u6de1\u8def\u753a”,”odpt.Station:TokyoMetro.Marunouchi.Ikebukuro”:”\u6c60\u888b”,”odpt.Station:TokyoMetro.Marunouchi.Otemachi”:”\u5927\u624b\u753a”,”odpt.Station:TokyoMetro.Marunouchi.Ogikubo”:”\u837b\u7aaa”,”odpt.Station:TokyoMetro.Marunouchi.Ochanomizu”:”\u5fa1\u8336\u30ce\u6c34″,”odpt.Station:TokyoMetro.Marunouchi.Kasumigaseki”:”\u971e\u30b1\u95a2″,”odpt.Station:TokyoMetro.Marunouchi.Ginza”:”\u9280\u5ea7″,”odpt.Station:TokyoMetro.Marunouchi.Korakuen”:”\u5f8c\u697d\u5712″,”odpt.Station:TokyoMetro.Marunouchi.KokkaiGijidomae”:”\u56fd\u4f1a\u8b70\u4e8b\u5802\u524d”,”odpt.Station:TokyoMetro.Marunouchi.ShinOtsuka”:”\u65b0\u5927\u585a”,”odpt.Station:TokyoMetro.Marunouchi.ShinKoenji”:”\u65b0\u9ad8\u5186\u5bfa”,”odpt.Station:TokyoMetro.Marunouchi.Shinjuku”:”\u65b0\u5bbf”,”odpt.Station:TokyoMetro.Marunouchi.ShinjukuGyoemmae”:”\u65b0\u5bbf\u5fa1\u82d1\u524d”,”odpt.Station:TokyoMetro.Marunouchi.ShinjukuSanchome”:”\u65b0\u5bbf\u4e09\u4e01\u76ee”,”odpt.Station:TokyoMetro.Marunouchi.ShinNakano”:”\u65b0\u4e2d\u91ce”,”odpt.Station:TokyoMetro.Marunouchi.Tokyo”:”\u6771\u4eac”,”odpt.Station:TokyoMetro.Marunouchi.NakanoSakaue”:”\u4e2d\u91ce\u5742\u4e0a”,”odpt.Station:TokyoMetro.MarunouchiBranch.NakanoShimbashi”:”\u4e2d\u91ce\u65b0\u6a4b”,”odpt.Station:TokyoMetro.MarunouchiBranch.NakanoFujimicho”:”\u4e2d\u91ce\u5bcc\u58eb\u898b\u753a”,”odpt.Station:TokyoMetro.Marunouchi.NishiShinjuku”:”\u897f\u65b0\u5bbf”,”odpt.Station:TokyoMetro.Marunouchi.HigashiKoenji”:”\u6771\u9ad8\u5186\u5bfa”,”odpt.Station:TokyoMetro.MarunouchiBranch.Honancho”:”\u65b9\u5357\u753a”,”odpt.Station:TokyoMetro.Marunouchi.HongoSanchome”:”\u672c\u90f7\u4e09\u4e01\u76ee”,”odpt.Station:TokyoMetro.Marunouchi.MinamiAsagaya”:”\u5357\u963f\u4f50\u30b1\u8c37″,”odpt.Station:TokyoMetro.Marunouchi.Myogadani”:”\u8317\u8377\u8c37″,”odpt.Station:TokyoMetro.Marunouchi.Yotsuya”:”\u56db\u30c4\u8c37″,”odpt.Station:TokyoMetro.Marunouchi.YotsuyaSanchome”:”\u56db\u8c37\u4e09\u4e01\u76ee”,”odpt.Station:TokyoMetro.MarunouchiBranch.NakanoSakaue”:”\u4e2d\u91ce\u5742\u4e0a”,”odpt.Station:TokyoMetro.Hibiya.Akihabara”:”\u79cb\u8449\u539f”,”odpt.Station:TokyoMetro.Hibiya.Iriya”:”\u5165\u8c37″,”odpt.Station:TokyoMetro.Hibiya.Ueno”:”\u4e0a\u91ce”,”odpt.Station:TokyoMetro.Hibiya.Ebisu”:”\u6075\u6bd4\u5bff”,”odpt.Station:TokyoMetro.Hibiya.Kasumigaseki”:”\u971e\u30b1\u95a2″,”odpt.Station:TokyoMetro.Hibiya.Kamiyacho”:”\u795e\u8c37\u753a”,”odpt.Station:TokyoMetro.Hibiya.Kayabacho”:”\u8305\u5834\u753a”,”odpt.Station:TokyoMetro.Hibiya.KitaSenju”:”\u5317\u5343\u4f4f”,”odpt.Station:TokyoMetro.Hibiya.Ginza”:”\u9280\u5ea7″,”odpt.Station:TokyoMetro.Hibiya.Kodemmacho”:”\u5c0f\u4f1d\u99ac\u753a”,”odpt.Station:TokyoMetro.Hibiya.Tsukiji”:”\u7bc9\u5730″,”odpt.Station:TokyoMetro.Hibiya.NakaOkachimachi”:”\u4ef2\u5fa1\u5f92\u753a”,”odpt.Station:TokyoMetro.Hibiya.NakaMeguro”:”\u4e2d\u76ee\u9ed2″,”odpt.Station:TokyoMetro.Hibiya.Ningyocho”:”\u4eba\u5f62\u753a”,”odpt.Station:TokyoMetro.Hibiya.Hatchobori”:”\u516b\u4e01\u5800″,”odpt.Station:TokyoMetro.Hibiya.HigashiGinza”:”\u6771\u9280\u5ea7″,”odpt.Station:TokyoMetro.Hibiya.Hibiya”:”\u65e5\u6bd4\u8c37″,”odpt.Station:TokyoMetro.Hibiya.HiroO”:”\u5e83\u5c3e”,”odpt.Station:TokyoMetro.Hibiya.MinamiSenju”:”\u5357\u5343\u4f4f”,”odpt.Station:TokyoMetro.Hibiya.Minowa”:”\u4e09\u30ce\u8f2a”,”odpt.Station:TokyoMetro.Hibiya.Roppongi”:”\u516d\u672c\u6728″,”odpt.Station:TokyoMetro.Tozai.Iidabashi”:”\u98ef\u7530\u6a4b”,”odpt.Station:TokyoMetro.Tozai.Urayasu”:”\u6d66\u5b89″,”odpt.Station:TokyoMetro.Tozai.Otemachi”:”\u5927\u624b\u753a”,”odpt.Station:TokyoMetro.Tozai.Ochiai”:”\u843d\u5408″,”odpt.Station:TokyoMetro.Tozai.Kagurazaka”:”\u795e\u697d\u5742″,”odpt.Station:TokyoMetro.Tozai.Kasai”:”\u845b\u897f”,”odpt.Station:TokyoMetro.Tozai.Kayabacho”:”\u8305\u5834\u753a”,”odpt.Station:TokyoMetro.Tozai.Kiba”:”\u6728\u5834″,”odpt.Station:TokyoMetro.Tozai.Gyotoku”:”\u884c\u5fb3″,”odpt.Station:TokyoMetro.Tozai.Kudanshita”:”\u4e5d\u6bb5\u4e0b”,”odpt.Station:TokyoMetro.Tozai.Takadanobaba”:”\u9ad8\u7530\u99ac\u5834″,”odpt.Station:TokyoMetro.Tozai.Takebashi”:”\u7af9\u6a4b”,”odpt.Station:TokyoMetro.Tozai.Toyocho”:”\u6771\u967d\u753a”,”odpt.Station:TokyoMetro.Tozai.Nakano”:”\u4e2d\u91ce”,”odpt.Station:TokyoMetro.Tozai.NishiKasai”:”\u897f\u845b\u897f”,”odpt.Station:TokyoMetro.Tozai.NishiFunabashi”:”\u897f\u8239\u6a4b”,”odpt.Station:TokyoMetro.Tozai.Nihombashi”:”\u65e5\u672c\u6a4b”,”odpt.Station:TokyoMetro.Tozai.BarakiNakayama”:”\u539f\u6728\u4e2d\u5c71″,”odpt.Station:TokyoMetro.Tozai.MinamiGyotoku”:”\u5357\u884c\u5fb3″,”odpt.Station:TokyoMetro.Tozai.MinamiSunamachi”:”\u5357\u7802\u753a”,”odpt.Station:TokyoMetro.Tozai.Myoden”:”\u5999\u5178″,”odpt.Station:TokyoMetro.Tozai.MonzenNakacho”:”\u9580\u524d\u4ef2\u753a”,”odpt.Station:TokyoMetro.Tozai.Waseda”:”\u65e9\u7a32\u7530″,”odpt.Station:TokyoMetro.Chiyoda.Akasaka”:”\u8d64\u5742″,”odpt.Station:TokyoMetro.Chiyoda.Ayase”:”\u7dbe\u702c”,”odpt.Station:TokyoMetro.Chiyoda.Otemachi”:”\u5927\u624b\u753a”,”odpt.Station:TokyoMetro.Chiyoda.OmoteSando”:”\u8868\u53c2\u9053″,”odpt.Station:TokyoMetro.Chiyoda.Kasumigaseki”:”\u971e\u30b1\u95a2″,”odpt.Station:TokyoMetro.Chiyoda.KitaAyase”:”\u5317\u7dbe\u702c”,”odpt.Station:TokyoMetro.Chiyoda.KitaSenju”:”\u5317\u5343\u4f4f”,”odpt.Station:TokyoMetro.Chiyoda.KokkaiGijidomae”:”\u56fd\u4f1a\u8b70\u4e8b\u5802\u524d”,”odpt.Station:TokyoMetro.Chiyoda.ShinOchanomizu”:”\u65b0\u5fa1\u8336\u30ce\u6c34″,”odpt.Station:TokyoMetro.Chiyoda.Sendagi”:”\u5343\u99c4\u6728″,”odpt.Station:TokyoMetro.Chiyoda.NishiNippori”:”\u897f\u65e5\u66ae\u91cc”,”odpt.Station:TokyoMetro.Chiyoda.Nijubashimae”:”\u4e8c\u91cd\u6a4b\u524d”,”odpt.Station:TokyoMetro.Chiyoda.Nezu”:”\u6839\u6d25″,”odpt.Station:TokyoMetro.Chiyoda.Nogizaka”:”\u4e43\u6728\u5742″,”odpt.Station:TokyoMetro.Chiyoda.Hibiya”:”\u65e5\u6bd4\u8c37″,”odpt.Station:TokyoMetro.Chiyoda.Machiya”:”\u753a\u5c4b”,”odpt.Station:TokyoMetro.Chiyoda.MeijiJingumae”:”\u660e\u6cbb\u795e\u5bae\u524d\u3008\u539f\u5bbf\u3009″,”odpt.Station:TokyoMetro.Chiyoda.Yushima”:”\u6e6f\u5cf6″,”odpt.Station:TokyoMetro.Chiyoda.YoyogiUehara”:”\u4ee3\u3005\u6728\u4e0a\u539f”,”odpt.Station:TokyoMetro.Chiyoda.YoyogiKoen”:”\u4ee3\u3005\u6728\u516c\u5712″,”odpt.Station:TokyoMetro.Yurakucho.Iidabashi”:”\u98ef\u7530\u6a4b”,”odpt.Station:TokyoMetro.Yurakucho.Ichigaya”:”\u5e02\u30b1\u8c37″,”odpt.Station:TokyoMetro.Yurakucho.Ikebukuro”:”\u6c60\u888b”,”odpt.Station:TokyoMetro.Yurakucho.Edogawabashi”:”\u6c5f\u6238\u5ddd\u6a4b”,”odpt.Station:TokyoMetro.Yurakucho.Kanamecho”:”\u8981\u753a”,”odpt.Station:TokyoMetro.Yurakucho.GinzaItchome”:”\u9280\u5ea7\u4e00\u4e01\u76ee”,”odpt.Station:TokyoMetro.Yurakucho.Kojimachi”:”\u9eb4\u753a”,”odpt.Station:TokyoMetro.Yurakucho.Gokokuji”:”\u8b77\u56fd\u5bfa”,”odpt.Station:TokyoMetro.Yurakucho.KotakeMukaihara”:”\u5c0f\u7af9\u5411\u539f”,”odpt.Station:TokyoMetro.Yurakucho.Sakuradamon”:”\u685c\u7530\u9580″,”odpt.Station:TokyoMetro.Yurakucho.ShinKiba”:”\u65b0\u6728\u5834″,”odpt.Station:TokyoMetro.Yurakucho.Shintomicho”:”\u65b0\u5bcc\u753a”,”odpt.Station:TokyoMetro.Yurakucho.Senkawa”:”\u5343\u5ddd”,”odpt.Station:TokyoMetro.Yurakucho.Tatsumi”:”\u8fb0\u5df3″,”odpt.Station:TokyoMetro.Yurakucho.ChikatetsuAkatsuka”:”\u5730\u4e0b\u9244\u8d64\u585a”,”odpt.Station:TokyoMetro.Yurakucho.ChikatetsuNarimasu”:”\u5730\u4e0b\u9244\u6210\u5897″,”odpt.Station:TokyoMetro.Yurakucho.Tsukishima”:”\u6708\u5cf6″,”odpt.Station:TokyoMetro.Yurakucho.Toyosu”:”\u8c4a\u6d32″,”odpt.Station:TokyoMetro.Yurakucho.Nagatacho”:”\u6c38\u7530\u753a”,”odpt.Station:TokyoMetro.Yurakucho.HigashiIkebukuro”:”\u6771\u6c60\u888b”,”odpt.Station:TokyoMetro.Yurakucho.Hikawadai”:”\u6c37\u5ddd\u53f0″,”odpt.Station:TokyoMetro.Yurakucho.Heiwadai”:”\u5e73\u548c\u53f0″,”odpt.Station:TokyoMetro.Yurakucho.Yurakucho”:”\u6709\u697d\u753a”,”odpt.Station:TokyoMetro.Yurakucho.Wakoshi”:”\u548c\u5149\u5e02″,”odpt.Station:TokyoMetro.Hanzomon.AoyamaItchome”:”\u9752\u5c71\u4e00\u4e01\u76ee”,”odpt.Station:TokyoMetro.Hanzomon.Otemachi”:”\u5927\u624b\u753a”,”odpt.Station:TokyoMetro.Hanzomon.Oshiage”:”\u62bc\u4e0a\u3008\u30b9\u30ab\u30a4\u30c4\u30ea\u30fc\u524d\u3009″,”odpt.Station:TokyoMetro.Hanzomon.OmoteSando”:”\u8868\u53c2\u9053″,”odpt.Station:TokyoMetro.Hanzomon.KiyosumiShirakawa”:”\u6e05\u6f84\u767d\u6cb3″,”odpt.Station:TokyoMetro.Hanzomon.Kinshicho”:”\u9326\u7cf8\u753a”,”odpt.Station:TokyoMetro.Hanzomon.Kudanshita”:”\u4e5d\u6bb5\u4e0b”,”odpt.Station:TokyoMetro.Hanzomon.Shibuya”:”\u6e0b\u8c37″,”odpt.Station:TokyoMetro.Hanzomon.Jimbocho”:”\u795e\u4fdd\u753a”,”odpt.Station:TokyoMetro.Hanzomon.Suitengumae”:”\u6c34\u5929\u5bae\u524d”,”odpt.Station:TokyoMetro.Hanzomon.Sumiyoshi”:”\u4f4f\u5409″,”odpt.Station:TokyoMetro.Hanzomon.Nagatacho”:”\u6c38\u7530\u753a”,”odpt.Station:TokyoMetro.Hanzomon.Hanzomon”:”\u534a\u8535\u9580″,”odpt.Station:TokyoMetro.Hanzomon.Mitsukoshimae”:”\u4e09\u8d8a\u524d”,”odpt.Station:TokyoMetro.Namboku.AkabaneIwabuchi”:”\u8d64\u7fbd\u5ca9\u6df5″,”odpt.Station:TokyoMetro.Namboku.AzabuJuban”:”\u9ebb\u5e03\u5341\u756a”,”odpt.Station:TokyoMetro.Namboku.Iidabashi”:”\u98ef\u7530\u6a4b”,”odpt.Station:TokyoMetro.Namboku.Ichigaya”:”\u5e02\u30b1\u8c37″,”odpt.Station:TokyoMetro.Namboku.Oji”:”\u738b\u5b50″,”odpt.Station:TokyoMetro.Namboku.OjiKamiya”:”\u738b\u5b50\u795e\u8c37″,”odpt.Station:TokyoMetro.Namboku.Korakuen”:”\u5f8c\u697d\u5712″,”odpt.Station:TokyoMetro.Namboku.Komagome”:”\u99d2\u8fbc”,”odpt.Station:TokyoMetro.Namboku.Shimo”:”\u5fd7\u8302″,”odpt.Station:TokyoMetro.Namboku.Shirokanedai”:”\u767d\u91d1\u53f0″,”odpt.Station:TokyoMetro.Namboku.ShirokaneTakanawa”:”\u767d\u91d1\u9ad8\u8f2a”,”odpt.Station:TokyoMetro.Namboku.TameikeSanno”:”\u6e9c\u6c60\u5c71\u738b”,”odpt.Station:TokyoMetro.Namboku.Todaimae”:”\u6771\u5927\u524d”,”odpt.Station:TokyoMetro.Namboku.Nagatacho”:”\u6c38\u7530\u753a”,”odpt.Station:TokyoMetro.Namboku.Nishigahara”:”\u897f\u30b1\u539f”,”odpt.Station:TokyoMetro.Namboku.HonKomagome”:”\u672c\u99d2\u8fbc”,”odpt.Station:TokyoMetro.Namboku.Meguro”:”\u76ee\u9ed2″,”odpt.Station:TokyoMetro.Namboku.Yotsuya”:”\u56db\u30c4\u8c37″,”odpt.Station:TokyoMetro.Namboku.RoppongiItchome”:”\u516d\u672c\u6728\u4e00\u4e01\u76ee”,”odpt.Station:TokyoMetro.Fukutoshin.Ikebukuro”:”\u6c60\u888b”,”odpt.Station:TokyoMetro.Fukutoshin.Kanamecho”:”\u8981\u753a”,”odpt.Station:TokyoMetro.Fukutoshin.KitaSando”:”\u5317\u53c2\u9053″,”odpt.Station:TokyoMetro.Fukutoshin.KotakeMukaihara”:”\u5c0f\u7af9\u5411\u539f”,”odpt.Station:TokyoMetro.Fukutoshin.Shibuya”:”\u6e0b\u8c37″,”odpt.Station:TokyoMetro.Fukutoshin.ShinjukuSanchome”:”\u65b0\u5bbf\u4e09\u4e01\u76ee”,”odpt.Station:TokyoMetro.Fukutoshin.Senkawa”:”\u5343\u5ddd”,”odpt.Station:TokyoMetro.Fukutoshin.Zoshigaya”:”\u96d1\u53f8\u304c\u8c37″,”odpt.Station:TokyoMetro.Fukutoshin.NishiWaseda”:”\u897f\u65e9\u7a32\u7530″,”odpt.Station:TokyoMetro.Fukutoshin.HigashiShinjuku”:”\u6771\u65b0\u5bbf”,”odpt.Station:TokyoMetro.Fukutoshin.MeijiJingumae”:”\u660e\u6cbb\u795e\u5bae\u524d\u3008\u539f\u5bbf\u3009″,”odpt.Station:TokyoMetro.Fukutoshin.Hikawadai”:”\u6c37\u5ddd\u53f0″,”odpt.Station:TokyoMetro.Fukutoshin.Heiwadai”:”\u5e73\u548c\u53f0″,”odpt.Station:TokyoMetro.Fukutoshin.ChikatetsuAkatsuka”:”\u5730\u4e0b\u9244\u8d64\u585a”,”odpt.Station:TokyoMetro.Fukutoshin.ChikatetsuNarimasu”:”\u5730\u4e0b\u9244\u6210\u5897″,”odpt.Station:TokyoMetro.Fukutoshin.Wakoshi”:”\u548c\u5149\u5e02″}

みんなどうやって、データ保有しているのだろう。

コメント