The main aspect of this project is about generating datasets out of public available web scrapped information about public transportation in Hong Kong. At the same time it creates a map plot about the generated data with their real geographical coordinates(extracted through Google Cloud Geocoding API).
Essential for the execution of the python files is an active Google Cloud Project(with Geocoding API enabled), while the executing user will need to have a API key with the correct rights.
- Run the script:
python3 datamine_hk_mtr_info.py
- inspect generated dataset
cd media vi Stations_With_Coords_And_Maps.csv
- Run the script:
python3 display_mt_map.py
- After the execution is done, the image will be available in the media folder as hong_kong_mtr_map.png
Line, Station names but also the web links to the pdf maps(of the individual station and the area surrounding it) where taken from the official website of the Mass Transit Railway Corporation. Geographical Coordinates where automatically querried through a Google Maps API by Geocoding / Google Cloud. For the custom background image I modified a MTR system map version 2022 from Wikipedia to my preferences.
At the moment of creating this project it only uses MTR/Subway data from Hong Kong. I am thinking of also including graphs for the public buses and fairies.
This project is licensed under the MIT License - see the LICENSE file for details.