A mobile-friendly single-page PWA that facilitates easy navigation of the Kempegowda Bus Stand (Majestic): https://majestic.bmtc.co.in
- To set up the project, for development or otherwise, first run
yarn install - Once the packages have been installed,
yarn devwill run the applet locally, whileyarn buildwill create a build folder.
Translation strings for data elements are provided with the data, while other translations are stored in messages/.
Translation related settings (e.g default locale) are stored in project.inlang/settings.json.
All input data is stored in input/:
platforms-majestic.geojson: Platform coordinatesplatform-index.csv: Platform <-> Route mappingsbus-stops.csv: Stops of a route in Englishbus-stops-kn.csv: Stop in English <-> Stop in Kannada
Python scripts to process the data are stored in the root project folder.
generate-geojson.py: Takes all available data ininput/to createplatform-routes-majestic.geojson(used by applet for all data)update-platform-index.py: Reads a temporary bus-stops-pf.csv with platform information and modifies existing platform values to the new ones.generate-bus-stops-kn.py: Takes all available unique stops in bus-stops.csv, and uses varnam's transliteration API to generate bus-stops-kn.csv (not used as we now receive a bus-stops-kn.csv)
The final output file is static/data/platforms-routes-majestic.geojson. This is available on the build under data/platforms-routes-majestic.geojson.
This output file is used by the applet to read platform, route / bus, and stop information.