Add Google Maps route avoidance flags
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user