In the event connected Tallinne, New York, Kyoto and Sabae about DXGOV, held by Sakade-san at Kyoto-U. Opendata in Talline is interesting.
「Bus in Tallinn」by Open Data Tallinn
Update every 5 seconds, enjoy with beautify sight from the sky! Get more info by clicking the pin.
5秒間隔更新、美しいまちなみを見る衛星写真と共にどうぞ! ピンクリックで情報が見えます。
DATA: Location of public transport vehicles in real time
The app make CSV from providing the open data as headless CSV (TXT)
アプリ内でヘッダーレスなCSVデータ(TXT)をCSVデータとして変換しています
const fetchData = async () => { const url = "https://transport.tallinn.ee/gps.txt"; //const txt = await (await fetch(url)).text(); // Please support CORS!! const txt = await fetchViaProxy(url); const csv = CSV.decode(txt); csv.unshift(["type", "line", "lng", "lat", "speed", "label", "vehicle"]); const data = CSV.toJSON(csv).map(d => { const l = (s) => s.substring(0, 2) + "." + s.substring(2); d.lat = l(d.lat); d.lng = l(d.lng); return d; }); console.log(data); return data; };
Browser can't fetch directly from the server by Tallinn. Please support CORS
ブラウザはタリンのサーバーからデータを直接取得できません。CORS対応、お願いします!
Enjoy to create!
創るを楽しもう!