- Replace OSM Overpass transit data with the Rejseplanen GTFS feed (routes keyed by (agency, short name); styles from modes.yaml) - Draw one shape per (style, ref, direction), choosing the shape that serves the most in-area stops so lines pass the stops we show - Collapse stops by names (verified unambiguous); prune stops whose serving refs have no drawn line within 300 m - Patch Københavns Havn + Nordhavn into the area polygon so ferry routes and sub-harbour metro tunnels survive clipping; 100 m buffer closes relation boundary slivers - Drop OSM download pipeline; keep tiled basemap
14 lines
354 B
Python
14 lines
354 B
Python
"""Shared paths and constants for the Copenhagen map scripts."""
|
|
from pathlib import Path
|
|
|
|
HERE = Path(__file__).resolve().parent
|
|
CPH = HERE.parent
|
|
CONFIG = CPH / "config"
|
|
DATA = CPH / "data"
|
|
RAW = DATA / "raw"
|
|
GTFS_RAW = RAW / "gtfs"
|
|
PROCESSED = DATA / "processed"
|
|
OUTPUT = CPH / "output"
|
|
|
|
UA = "jetlag-maps/0.1 (https://github.com/marvin/jetlag-maps)"
|