3.4.0 • Published 2 months ago

mini-tokyo-3d v3.4.0

Weekly downloads
12
License
MIT
Repository
github
Last release
2 months ago

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

Developer Guides

Cheat Sheet

OperationDescription
Mouse or finger dragPan
Mouse wheel rotationZoom in/out
Right click or Ctrl key + mouse dragTilt up/down and rotate
Shift key + mouse dragBox zoom
Pinch in/outZoom in/out
Two-finger dragTilt up/down and rotate
Double-click or triple-tapZoom in
Shift key + Double-click or two-finger tapZoom out
Click or tap the search buttonShow/hide the route search panel
Click or tap +/- buttonsZoom in/out
Click or tap the compass buttonReset bearing to north
Click or tap the compass button + mouse or finder dragRotate
Click or tap the fullscreen buttonToggle the fullscreen mode
Click or tap the eye buttonToggle the underground mode
Click or tap the playback buttonToggle the playback mode
Click or tap the battery buttonToggle the eco mode
Click or tap the layer buttonShow/hide the layer display settings panel
Click or tap the camera buttonShow/hide the tracking mode settings panel
Click or tap the info buttonShow/hide the app info panel
Click or tap a train/aircraft/stationEnable tracking or select station
Click or tap the mapDisable tracking or deselect station
Hover a train/aircraft/stationShow the train/aircraft/station information

Language Support

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

LanguageUser InterfaceMap LabelsStations, Railways, Airlines, etc.User Guide
EnglishYesYesYesYes
JapaneseYesYesYesYes
Chinese (Simplified)YesYesYes-
Chinese (Traditional)YesYesYes-
KoreanYesYesYes-
ThaiYes---
NepaliYes---
Portuguese (Brazil)Yes---
FrenchYes---

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, poi.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 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 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.

{
    "odpt": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

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

Finally, replace the accessToken property, which is passed to a Map constructor, with your Mapbox access token in index.html.

See the Developer Guides for more details.

License

Mini Tokyo 3D is available under the MIT license.

Supporting Mini Tokyo 3D

Your support, large or small, helps keep this project strong!