Add Google Maps route avoidance flags

This commit is contained in:
Stefano Fiorini
2026-03-10 00:51:35 -05:00
parent d3a2b9faae
commit 7322d53fa6
2 changed files with 36 additions and 4 deletions

View File

@@ -32,5 +32,15 @@ Required Google APIs for the key:
```bash
node integrations/google-maps/traffic.js eta --from "DFW Airport" --to "Love Field" --departAt now
node integrations/google-maps/traffic.js eta --from "DFW Airport" --to "Love Field" --avoidTolls
node integrations/google-maps/traffic.js leave-by --from "Home" --to "DFW Airport" --arriveBy 2026-03-17T08:30:00-05:00
node integrations/google-maps/traffic.js leave-by --from "Home" --to "DFW Airport" --arriveBy 2026-03-17T08:30:00-05:00 --avoidTolls
```
## Optional route modifiers
- `--avoidTolls`
- `--avoidHighways`
- `--avoidFerries`
These flags are passed through to the Google Routes API `routeModifiers` field and work with both `eta` and `leave-by`.