grant-h / WMATAExits

A tool to process the WMATA exit PDF into JSON

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WMATA Metro Station Exit

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.

Usage

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"

TODO

  • 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

Disclaimers

Not an official WMATA product.

About

A tool to process the WMATA exit PDF into JSON


Languages

Language:Python 100.0%