Comprehensive documentation for the Ether Data spatio-temporal data workspace
This package provides functionality for fetching traffic data from TomTom’s Intermediate Traffic API and loading it into BigQuery using Cloud Run Jobs.
# Run the pipeline locally (from workspace root)
./proj/tomtom_intermediate_traffic/run-local.sh
# This will:
# - Navigate to workspace root automatically
# - Use uv to manage dependencies and virtual environment
# - Run the pipeline job with proper workspace setup
Prerequisites for local development:
gcloud auth application-default login# Deploy to Google Cloud Run Jobs
./deployment/deploy.sh your-project-id us-central1
# Setup Cloud Scheduler
./deployment/setup-scheduler.sh your-project-id us-central1
The pipeline requires these secrets in Google Cloud Secret Manager:
tomtom_intermediate_api_key - Your TomTom API keytomtom_client_certificate - TLS client certificate (PEM format)tomtom_client_key - TLS client private key (PEM format)Create them using:
# API key (string value)
echo 'your-api-key-string' | gcloud secrets create tomtom_intermediate_api_key --data-file=-
# Certificate files (PEM format)
gcloud secrets create tomtom_client_certificate --data-file=client.pem
gcloud secrets create tomtom_client_key --data-file=client-key.pem
GOOGLE_CLOUD_PROJECT - Your Google Cloud project ID (defaults to ‘ether-demo’)FLOW_TYPE - Traffic flow type: ‘ff’ (free flow) or ‘nff’ (non-free flow) (defaults to ‘ff’)TOMTOM_INTERMEDIATE_API_PRODUCT_NAME - TomTom product name (defaults to ‘USA_N-HDF_DETAILED-OPENLR’)Note: For local development, you can set these in a .env file in the workspace root.