The source data for metro maps is currently Javascript, as this allows for more flexibilty when building metro maps from code.
In order to store the data in a database and to be able to load third party metro map data without executing arbitrary Javascript, the data must be JSON serializable.
The serialized data must be in a format that allows manual editing and is as simple as possible, while keeping a high information density.
Data is now json serializable, backend implementation currently uses JSON schemas to validate data. Will use pydantic for parsing and serialization in backend in the future.
The source data for metro maps is currently Javascript, as this allows for more flexibilty when building metro maps from code. In order to store the data in a database and to be able to load third party metro map data without executing arbitrary Javascript, the data must be JSON serializable. The serialized data must be in a format that allows manual editing and is as simple as possible, while keeping a high information density.