1 Star 1 Fork 1

stlstl / mini-tokyo-3d

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Mini Tokyo 3D

A real-time 3D digital map of Tokyo's public transport system.

Screenshot

Screenshot

Screenshot

See a Live Demo.

Demo Videos

User Guides

Cheat Sheet

Operation Description
Mouse or finger drag Pan
Mouse wheel rotation Zoom in/out
Right click or Ctrl key + mouse drag Tilt up/down and rotate
Shift key + mouse drag Box zoom
Pinch in/out Zoom in/out
Two-finger drag Tilt up/down and rotate
Double-click or triple-tap Zoom in
Shift key + Double-click or two-finger tap Zoom out
Click or tap the search button Show/hide the station search window
Click or tap +/- buttons Zoom in/out
Click or tap the compass button Reset bearing to north
Click or tap the compass button + mouse or finder drag Rotate
Click or tap the fullscreen button Toggle the fullscreen mode
Click or tap the eye button Toggle the underground mode
Click or tap the train/helicopter button Switch the tracking mode
Click or tap the playback button Toggle the playback mode
Click or tap the weather button Show/hide the weather
Click or tap the info button Show/hide the app info dialog
Click or tap a train/aircraft Enable tracking
Click or tap the map Disable tracking
Hover a train/aircraft Show the train/aircraft information

Language Support

Currently, the following languages are supported. Any help or contribution with translations and additional language support is always greatly appreciated.

Language User Interface Map Labels Stations, Railways, Airlines, etc. User Guide
English Yes Yes Yes Yes
Japanese Yes Yes Yes Yes
Chinese (Simplified) Yes Yes Yes -
Chinese (Traditional) Yes Yes Yes -
Korean Yes Yes Yes -
Thai Yes - - -
Nepali Yes - - -

If you want to contribute, please start with translating the UI messages in the dictionary-<ISO 639-1 code>.json file in the data directory. Then, if you have extra energy, add the title of each item in your language to airports.json, flight-statuses.json, operators.json, rail-directions.json, railways.json, stations.json, train-types.json in the data directory.

About Data

The data for this visualization are sourced from the Open Data Challenge for Public Transportation in Tokyo and the Public Transportation Open Data Center, which includes station information and train timetables as well as real-time data such as train location information and status information of multiple railway lines in the Greater Tokyo area.

How to Build

First, get access tokens for the public transportation data and map tiles by signing up at Open Data Challenge for Public Transportation in Tokyo, Public Transportation Open Data Center and Mapbox. Then, create a file named secrets which has access tokens in the following format in the root directory of the application.

{
    "tokyochallenge": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "odpt": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "mapbox": "pk.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxx"
}

The latest version of Node.js is required. Move to the root directory of the application, run the following commands, then the script, dataset and static web page will be generated in the build directory.

npm install
npm run build-all

License

Mini Tokyo 3D is available under the MIT license.

The MIT License (MIT) Copyright (c) 2019 Akihiko Kusanagi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

A real-time 3D digital map of Tokyo's public transport system 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/stlstl/mini-tokyo-3d.git
git@gitee.com:stlstl/mini-tokyo-3d.git
stlstl
mini-tokyo-3d
mini-tokyo-3d
master

搜索帮助