Files
maps-saas/scripts/populate_place_gates.py
T

24 lines
803 B
Python

#!/usr/bin/env python3
"""Compatibility entry point for source-backed OSM gate synchronization.
The previous implementation generated guessed gate coordinates around POI
centroids. That behavior has been removed. Use --pbf to import real OSM nodes.
"""
import argparse
import subprocess
import sys
from pathlib import Path
def main() -> int:
parser = argparse.ArgumentParser(description="Import real OSM gate/entrance nodes; no coordinates are generated.")
parser.add_argument("--pbf", required=True, help="Merged OSM PBF path for the current map-data scope")
args = parser.parse_args()
target = Path(__file__).with_name("sync_osm_place_gates.py")
return subprocess.call([sys.executable, str(target), "--pbf", args.pbf])
if __name__ == "__main__":
raise SystemExit(main())