Load Google Maps API key from a .env file

- Add python-dotenv and call load_dotenv() in traveltimes.py before reading
  GOOGLE_MAPS_API_KEY (exported env vars still take precedence).
- Add .env.example template; the real .env stays gitignored.
This commit is contained in:
2026-06-19 14:24:54 +02:00
parent 4da624bfcf
commit 2c60b83d8a
4 changed files with 20 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# Copy this file to `.env` and fill in your real key. `.env` is gitignored.
# Required: Google Maps API key with the Routes API enabled.
GOOGLE_MAPS_API_KEY=your-api-key-here