Add Google integrations and documentation
This commit is contained in:
33
docs/google-maps.md
Normal file
33
docs/google-maps.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user