POI vibe coding
This commit is contained in:
parent
d4fe881ef4
commit
5c39f31283
6 changed files with 5137 additions and 198 deletions
34
pipeline/download/pois/config.py
Normal file
34
pipeline/download/pois/config.py
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
from pathlib import Path
|
||||
|
||||
DATA_DIR = Path("./data_sources")
|
||||
GB_PBF_FILE = DATA_DIR / "great-britain-latest.osm.pbf"
|
||||
OUTPUT_FILE = DATA_DIR / "uk_pois.parquet"
|
||||
|
||||
GEOFABRIK_GB_URL = (
|
||||
"https://download.geofabrik.de/europe/great-britain-latest.osm.pbf"
|
||||
)
|
||||
|
||||
# UK bounding box (west, south, east, north) — used for way centroid filtering
|
||||
UK_BBOX_WEST = -7.57
|
||||
UK_BBOX_SOUTH = 49.96
|
||||
UK_BBOX_EAST = 1.68
|
||||
UK_BBOX_NORTH = 58.64
|
||||
|
||||
# OSM tag keys that indicate a POI. Any element with one of these keys is kept,
|
||||
# regardless of the specific value. When multiple keys match, their values are
|
||||
# concatenated with " / ".
|
||||
POI_TAG_KEYS: list[str] = [
|
||||
"amenity",
|
||||
"shop",
|
||||
"leisure",
|
||||
"tourism",
|
||||
"railway",
|
||||
"aeroway",
|
||||
"highway",
|
||||
"public_transport",
|
||||
"station",
|
||||
"building",
|
||||
"military",
|
||||
"emergency",
|
||||
"healthcare",
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue