#!/usr/bin/env bash # List all existing proper names in the atlas DB (for collision avoidance). # Usage: tooling/atlas-names set -euo pipefail cd "$(dirname "$0")/.." { tooling/atlas list-bodies 2>/dev/null | python3 -c " import sys, json for b in json.load(sys.stdin): if b.get('proper_name'): print(b['proper_name']) " tooling/atlas list-stations 2>/dev/null | python3 -c " import sys, json for s in json.load(sys.stdin): if s.get('proper_name'): print(s['proper_name']) " } | sort -u