perfect-postcode/pipeline/config.py

12 lines
393 B
Python

"""Shared configuration for the pipeline and server."""
from pathlib import Path
DATA_DIR = Path(__file__).parent.parent / "data_sources"
PROCESSED_DIR = DATA_DIR / "processed"
AGGREGATES_DIR = PROCESSED_DIR / "aggregates"
# H3 resolutions to generate and serve
# https://h3geo.org/docs/core-library/restable/#average-area-in-m2
H3_RESOLUTIONS = [7, 8, 9, 10, 11]
DEFAULT_H3_RESOLUTION = 8