Usage
goplaces directions [flags]
goplaces directions --from "Pike Place Market" --to "Space Needle"
DEPARTURE_TIME="$(python3 -c 'from datetime import datetime, timezone, timedelta; print((datetime.now(timezone.utc)+timedelta(minutes=10)).strftime("%Y-%m-%dT%H:%M:%SZ"))')"
ARRIVAL_TIME="$(python3 -c 'from datetime import datetime, timezone, timedelta; print((datetime.now(timezone.utc)+timedelta(minutes=30)).strftime("%Y-%m-%dT%H:%M:%SZ"))')"
goplaces directions --from "GIG Airport" --to "Leblon, Rio de Janeiro" --mode drive --departure-time "$DEPARTURE_TIME"
goplaces directions --from "Pike Place Market" --to "Space Needle" --mode transit --arrival-time "$ARRIVAL_TIME"Inputs
--from, --to | Origin and destination address or place name. |
|---|---|
--from-place-id, --to-place-id | Origin and destination place IDs. |
--from-lat, --from-lng | Origin coordinates. Provide both. |
--to-lat, --to-lng | Destination coordinates. Provide both. |
Options
--mode | walk, drive, bicycle, transit. Default: walk. |
|---|---|
--compare | Add a second mode comparison. |
--steps | Include step-by-step instructions. |
--units | metric or imperial. Default: metric. |
--departure-time | RFC3339 departure time. |
--arrival-time | RFC3339 arrival time for transit routes. Mutually exclusive with departure time; transit times must be within Google's schedule window. |
--avoid-tolls, --avoid-highways, --avoid-ferries | Driving route modifiers. |
--language, --region | BCP-47 language and CLDR region hints. |