A script to take the handcrafted Washington, DC Metro (WMATA) PDF diagrams created by u/eable2 on Reddit (original post). The presentation source is available here.
Export a PDF from there to get the latest version.
You will need a Python 3 runtime environment. Use pip to install pypdf
(preferably into a virtual environment).
pip3 install pypdf
Then run the script on the PDF to produce a JSON file:
./wmata_parse.py "WMATA Metro Station Platform Exit Guide.pdf"
- Include which metro lines are at each station
- Resolve indicator position to a track/platform relative location that is independent of the page size
- Resolve preferred exits (need to understand PDF shapes)
- Resolve exit/escalator/stair direction
Not an official WMATA product.