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:
@@ -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
|
||||
Reference in New Issue
Block a user