Routes + Places

route

Compute a route, sample waypoints along its polyline, then search for places near each waypoint.

Usage

goplaces route <query> [flags]

shell
goplaces route "coffee" --from "Seattle, WA" --to "Portland, OR" --max-waypoints 5

Flags

--from, --toOrigin and destination address or place name.
--modeTravel mode: DRIVE, WALK, BICYCLE, TWO_WHEELER, TRANSIT. Default: DRIVE.
--radius-mSearch radius per sampled waypoint. Default: 1000.
--max-waypointsMax sampled waypoints along the route. Default: 5.
--limitMax results per waypoint, 1-20. Default: 5.
--language, --regionBCP-47 language and CLDR region hints.

Requirements

Requires both Places API (New) and Routes API enabled on the key.