Add Google integrations and documentation

This commit is contained in:
Stefano Fiorini
2026-03-08 21:29:37 -05:00
parent 976888f002
commit 7361b31c7c
8 changed files with 1641 additions and 1 deletions

33
docs/google-maps.md Normal file
View File

@@ -0,0 +1,33 @@
# google-maps integration
Google Maps traffic/ETA helper CLI using Geocoding API and Routes API.
## What this integration is for
- Drive ETA between two places
- Leave-by time estimation for a target arrival
- Quick traffic-aware route summaries
## Runtime
- `node`
- no package dependencies beyond built-in runtime APIs on current Node
## Auth
Preferred:
- `GOOGLE_MAPS_API_KEY` environment variable
Fallback key file:
- `~/.openclaw/credentials/google-maps/apikey.txt`
Required Google APIs for the key:
- Geocoding API
- Routes API
## Commands
```bash
node integrations/google-maps/traffic.js eta --from "DFW Airport" --to "Love Field" --departAt now
node integrations/google-maps/traffic.js leave-by --from "Home" --to "DFW Airport" --arriveBy 2026-03-17T08:30:00-05:00
```